diff --git a/errors.go b/errors.go index 829e9d2c..614eb9f5 100644 --- a/errors.go +++ b/errors.go @@ -81,7 +81,7 @@ func (msg *Error) MarshalJSON() ([]byte, error) { } // Error implements the error interface. -func (msg Error) Error() string { +func (msg *Error) Error() string { return msg.Err.Error() }