diff --git a/gateway/assets/assets.go b/gateway/assets/assets.go index 199e511ca..b89772718 100644 --- a/gateway/assets/assets.go +++ b/gateway/assets/assets.go @@ -124,7 +124,6 @@ type DagTemplateData struct { } type ErrorTemplateData struct { - Path string StatusCode int StatusText string Error string diff --git a/gateway/assets/error.html b/gateway/assets/error.html index deb20336d..e043da319 100644 --- a/gateway/assets/error.html +++ b/gateway/assets/error.html @@ -2,7 +2,7 @@ - + {{ .StatusCode }} {{ .StatusText }} diff --git a/gateway/errors.go b/gateway/errors.go index 5c3c6bf18..11bb28cc0 100644 --- a/gateway/errors.go +++ b/gateway/errors.go @@ -159,7 +159,6 @@ func webError(w http.ResponseWriter, r *http.Request, err error, defaultCode int if acceptsHTML { w.WriteHeader(code) _ = assets.ErrorTemplate.Execute(w, assets.ErrorTemplateData{ - Path: r.URL.Path, StatusCode: code, StatusText: http.StatusText(code), Error: err.Error(),