diff --git a/errors.go b/errors.go index b0d70a94..ce773138 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() }