From 8bde331200c9a52dcfe611edb4f73a12f66343e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Wed, 12 Nov 2025 07:56:22 +0100 Subject: [PATCH] Show HTTP server error, bumped to v4 --- main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 4f3ea87..9226e7c 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( "strings" ) -const VERSION = "v3" +const VERSION = "v4" var ( flagVerbose bool @@ -49,7 +49,11 @@ func main() { http.HandleFunc("/sites", actionSites) log.Println("Listen on [::]:5123") - http.ListenAndServe("[::]:5123", nil) + err := http.ListenAndServe("[::]:5123", nil) + if err != nil { + log.Println(err) + os.Exit(1) + } } func replaceTilde(str string) string { // {{{