summaryrefslogtreecommitdiff
path: root/pkg/webui/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/webui/error.go')
-rw-r--r--pkg/webui/error.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/webui/error.go b/pkg/webui/error.go
index 05d8e9e..afce9a6 100644
--- a/pkg/webui/error.go
+++ b/pkg/webui/error.go
@@ -9,11 +9,13 @@ var errorTemplates = template.Must(template.ParseFS(htmlFS, "html/base.html", "h
func errorResponse(w http.ResponseWriter, status int, err error) {
type ErrorData struct {
+ Page
Err error
Status int
StatusText string
}
render(w, errorTemplates, status, &ErrorData{
+ Page: Page{Title: "Error", Section: "error"},
Err: err,
Status: status,
StatusText: http.StatusText(status),