From c6b048d0cbdf2a4ae2b1f2912903744dcb8081d5 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 5 Jan 2026 20:34:49 +0000 Subject: [PATCH] Actually show an error when we fail to get the user Caught while reading code. --- html.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html.go b/html.go index c91addf6..2456d3fa 100644 --- a/html.go +++ b/html.go @@ -362,6 +362,10 @@ func htmlDashboard(ctx context.Context, w http.ResponseWriter, user *models.User }) } userContent, err := contentForUser(ctx, user) + if err != nil { + respondError(w, "Failed to get user context", err, http.StatusInternalServerError) + return + } data := ContentDashboard{ CountInspections: int(inspectionCount), CountMosquitoSources: int(sourceCount),