浏览代码

Merge pull request #39443 from cpuguy83/error_response_error

Make `ErrorResponse` implement `Error`
Sebastiaan van Stijn 6 年之前
父节点
当前提交
6ee56d7b59
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      api/types/error_response_ext.go

+ 6 - 0
api/types/error_response_ext.go

@@ -0,0 +1,6 @@
+package types
+
+// Error returns the error message
+func (e ErrorResponse) Error() string {
+	return e.Message
+}