Print ListenAndServe Error

This commit is contained in:
snoutie committed 2025-05-22 14:08:46 +02:00
1 parent f4f3a4b304
commit f8ab5c8358
1 file changed
+4 -1
+4 -1
View File
@@ -30,5 +30,8 @@ func main() {
r := router.Load()
fmt.Println("Listening on :8080")
http.ListenAndServe(":8080", r)
err = http.ListenAndServe(":8080", r)
if err != nil {
fmt.Println(err)
}
}