summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-06-30 20:46:15 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-06-30 20:46:15 +0200
commit0d2eb7a705c74818f3782076c5965339d4ef8548 (patch)
tree5770af5dd677e8533fdddffd2e2ca46abb94e154 /examples
parentb57ef8e7be4064ed0f5d4ca4bf8cc8e44cb850a7 (diff)
downloadhh-0d2eb7a705c74818f3782076c5965339d4ef8548.tar.gz
Add error handling to exampleHEADmain
Diffstat (limited to 'examples')
-rw-r--r--examples/basic.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic.go b/examples/basic.go
index bfe538e..eaa0a9b 100644
--- a/examples/basic.go
+++ b/examples/basic.go
@@ -27,5 +27,5 @@ func adminUsersForm(w http.ResponseWriter, r struct {
func main() {
hhMountRoutes(nil)
- http.ListenAndServe(":http", nil)
+ slog.Error("Error listening", "error", http.ListenAndServe(":http", nil))
}