Merge pull request #39443 from cpuguy83/error_response_error
Make `ErrorResponse` implement `Error`
This commit is contained in:
commit
6ee56d7b59
1 changed files with 6 additions and 0 deletions
6
api/types/error_response_ext.go
Normal file
6
api/types/error_response_ext.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package types
|
||||
|
||||
// Error returns the error message
|
||||
func (e ErrorResponse) Error() string {
|
||||
return e.Message
|
||||
}
|
Loading…
Add table
Reference in a new issue