From e47aa19fa4a94a288f41ff6f6ddd9aee972d36ca Mon Sep 17 00:00:00 2001 From: Barry Deen Date: Fri, 6 Sep 2024 19:38:39 -0400 Subject: [PATCH] why crash --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 4db5ed2..2183bab 100644 --- a/main.go +++ b/main.go @@ -112,7 +112,10 @@ func main() { mux.Handle("/favicon.ico", http.StripPrefix("/", http.FileServer(http.Dir(config.StaticPath)))) fmt.Println("running on :3334") - http.ListenAndServe(":3334", relay) + err := http.ListenAndServe(":3334", relay) + if err != nil { + log.Fatal(err) + } } func LoadConfig() Config {