Merge pull request #39443 from cpuguy83/error_response_error

Make `ErrorResponse` implement `Error`
This commit is contained in:
Sebastiaan van Stijn 2019-07-08 21:02:28 +02:00 committed by GitHub
commit 6ee56d7b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

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