From ba0000678d6305a8137622845dd91fe5b22b47de Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 29 Oct 2019 11:59:08 -0600 Subject: Remove unused fields from HandlerError --- modules/caddyhttp/errors.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/caddyhttp/errors.go') diff --git a/modules/caddyhttp/errors.go b/modules/caddyhttp/errors.go index db64399..584f56f 100644 --- a/modules/caddyhttp/errors.go +++ b/modules/caddyhttp/errors.go @@ -53,10 +53,8 @@ func Error(statusCode int, err error) HandlerError { // HandlerError is a serializable representation of // an error from within an HTTP handler. type HandlerError struct { - Err error // the original error value and message - StatusCode int // the HTTP status code to associate with this error - Message string // an optional message that can be shown to the user - Recommendations []string // an optional list of things to try to resolve the error + Err error // the original error value and message + StatusCode int // the HTTP status code to associate with this error ID string // generated; for identifying this error in logs Trace string // produced from call stack -- cgit v1.2.3