From bb57d76f8bbf38e67239197c563a0c2c4eb5162d Mon Sep 17 00:00:00 2001 From: ymmt Date: Sun, 23 Dec 2018 02:18:52 +0900 Subject: [PATCH] [web] enhance error message. --- client/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/error.go b/client/error.go index 57af65a9..c7d374fa 100644 --- a/client/error.go +++ b/client/error.go @@ -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