diff --git a/remote/http/service.go b/remote/http/service.go index d5b850a..f1f8d55 100644 --- a/remote/http/service.go +++ b/remote/http/service.go @@ -33,6 +33,9 @@ type APIError struct { } func (e *APIError) Error() string { + if e.Code != "" { + return fmt.Sprintf("[%s] %s", e.Code, e.Description) + } return e.Description }