aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/handler.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2022-05-13 11:09:45 +0200
committerGitHub <noreply@github.com>2022-05-13 11:09:45 +0200
commit7ce5a022b5ce12e980774b17996140ebcddc0c53 (patch)
tree2ed2bc94b0c95f266c0177960aa2b2ef4f0a9ee8 /dashboard/app/handler.go
parent9ad6612a0a3b4ab403e6db3bafc65dc098e83fc3 (diff)
dashboard/app: fix reported error depth (#3138)
Lets report templates.ExecuteTemplate() issue too.
Diffstat (limited to 'dashboard/app/handler.go')
-rw-r--r--dashboard/app/handler.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dashboard/app/handler.go b/dashboard/app/handler.go
index 9f137264f..58f4ff339 100644
--- a/dashboard/app/handler.go
+++ b/dashboard/app/handler.go
@@ -61,7 +61,8 @@ func handleContext(fn contextHandler) http.Handler {
logf(c, "%v", err)
w.WriteHeader(http.StatusInternalServerError)
if err1 := templates.ExecuteTemplate(w, "error.html", data); err1 != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
+ combinedError := fmt.Sprintf("got err \"%v\" processing ExecuteTemplate() for err \"%v\"", err1, err)
+ http.Error(w, combinedError, http.StatusInternalServerError)
}
}
})