From c4e226795479508825a3b97ba006336e09c47d1a Mon Sep 17 00:00:00 2001 From: aliheydarabadii Date: Fri, 12 May 2023 19:40:09 +0330 Subject: [PATCH] change function type to pointer receivers error --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }