commands: Made Error implement error interface
Matt Bell committed
Oct 21, 2014 at 15:25 UTC
b65a5bacbe5cc8c29176f319d86bacd896c5d4f8
1 file changed
+1
-1
commands/response.go
+1
-1
@@ -24,7 +24,7 @@ type Error struct {
24
Code ErrorType
25
}
26
27
-func (e *Error) Error() string {
27
+func (e Error) Error() string {
28
return fmt.Sprintf("%d error: %s", e.Code, e.Message)
29
}
30