diff --git a/api/api.go b/api/api.go index 7bea4d3..a82c51c 100644 --- a/api/api.go +++ b/api/api.go @@ -21,7 +21,7 @@ type Error struct { } func (e *Error) Error() string { - return fmt.Sprintf("%s: %v", e.Code, e.Data) + return fmt.Sprintf("api-error: %s", e.Code) } func DataResponse(w http.ResponseWriter, status int, data interface{}) {