fix(webui): display an error page in all error cases
This commit is contained in:
parent
c483d909f9
commit
bb11b870d6
5 changed files with 11 additions and 6 deletions
|
@ -15,7 +15,7 @@ func errorResponse(w http.ResponseWriter, r *http.Request, status int, err error
|
|||
StatusText string
|
||||
}
|
||||
render(w, errorTemplates, status, &ErrorData{
|
||||
Page: makePage(r, &Page{Title: "Error", Section: "error"}),
|
||||
Page: &Page{Title: "Error", Section: "error"},
|
||||
Err: err,
|
||||
Status: status,
|
||||
StatusText: http.StatusText(status),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue