From 754a8e80f258573b7104d5657dd357859db9356a Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Wed, 20 May 2015 14:55:59 -0700 Subject: [PATCH] Remove error message shortening Signed-off-by: Derek McGowan (github: dmcgowan) --- docs/client/errors.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/client/errors.go b/docs/client/errors.go index e6ad5f51..2638055d 100644 --- a/docs/client/errors.go +++ b/docs/client/errors.go @@ -28,11 +28,7 @@ type UnexpectedHTTPResponseError struct { } func (e *UnexpectedHTTPResponseError) Error() string { - shortenedResponse := string(e.Response) - if len(shortenedResponse) > 15 { - shortenedResponse = shortenedResponse[:12] + "..." - } - return fmt.Sprintf("Error parsing HTTP response: %s: %q", e.ParseErr.Error(), shortenedResponse) + return fmt.Sprintf("Error parsing HTTP response: %s: %q", e.ParseErr.Error(), string(e.Response)) } func parseHTTPErrorResponse(r io.Reader) error {