Skip to content

Commit

Permalink
[web] enhance error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ymmt2005 committed Dec 22, 2018
1 parent 894fda9 commit bb57d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type httpError struct {
}

func (e *httpError) Error() string {
return http.StatusText(e.code)
return http.StatusText(e.code) + ": " + e.reason
}

// Is4xx returns true if err contains 4xx status code
Expand Down

0 comments on commit bb57d76

Please sign in to comment.