From 9c2df388d4a509c137f3b6398b7de6af2da0ceab Mon Sep 17 00:00:00 2001 From: Debaditya Date: Mon, 8 Jul 2024 14:01:55 +0530 Subject: [PATCH] Add error response while printing Signed-off-by: Ray --- request_errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request_errors.go b/request_errors.go index ae4c685..86c6c0e 100644 --- a/request_errors.go +++ b/request_errors.go @@ -13,7 +13,7 @@ type RequestError struct { } func (r RequestError) Error() string { - return fmt.Sprintf("An error occurred while calling %s", r.Url) + return fmt.Sprintf("An error occurred while calling %s %s", r.Url, string(r.ErrorResponse)) } func requestErrorFromOauthError(err error) error {