change function type to pointer receivers error

This commit is contained in:
aliheydarabadii 2023-05-12 19:40:09 +03:30
parent 6a0556ed5a
commit c4e2267954

View File

@ -81,7 +81,7 @@ func (msg *Error) MarshalJSON() ([]byte, error) {
} }
// Error implements the error interface. // Error implements the error interface.
func (msg Error) Error() string { func (msg *Error) Error() string {
return msg.Err.Error() return msg.Err.Error()
} }