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