From 4b385855e31c008f47ae7f765b1760cefe9fc769 Mon Sep 17 00:00:00 2001 From: Jan Semmelink <jan@uafrica.com> Date: Mon, 18 Oct 2021 08:04:25 +0200 Subject: [PATCH] Remove HTTP code from errors printf formatter --- errors/error.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/errors/error.go b/errors/error.go index b4baf2f..9253cda 100644 --- a/errors/error.go +++ b/errors/error.go @@ -2,7 +2,6 @@ package errors import ( "fmt" - "net/http" "path" "strconv" "strings" @@ -120,9 +119,6 @@ func (err CustomError) Formatted(opts FormattingOptions) string { ) } thisError += err.message - if err.code != 0 { - thisError += fmt.Sprintf(" HTTP(%d:%s)", err.code, http.StatusText(err.code)) - } if !opts.Causes { return thisError } -- GitLab