Make `ErrorResponse` implement `Error`
This allows an ErrorResponse to be used directly as an error type. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
a43a2ed746
commit
6ddd43b589
|
@ -0,0 +1,6 @@
|
||||||
|
package types
|
||||||
|
|
||||||
|
// Error returns the error message
|
||||||
|
func (e ErrorResponse) Error() string {
|
||||||
|
return e.Message
|
||||||
|
}
|
Loading…
Reference in New Issue