Browse Source

Merge pull request #39443 from cpuguy83/error_response_error

Make `ErrorResponse` implement `Error`
Sebastiaan van Stijn 6 năm trước cách đây
mục cha
commit
6ee56d7b59
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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
+}