diff --git a/errors.go b/errors.go index c0d907b9..856dbdb3 100644 --- a/errors.go +++ b/errors.go @@ -79,7 +79,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() }