Commit 5c784dc

mo khan <mo@mokhan.ca>
2021-09-05 18:29:25
fix: log errors
1 parent a0beed0
Changed files (1)
main.go
@@ -2,6 +2,7 @@ package main
 
 import (
 	"fmt"
+	"log"
 	"net/http"
 	"os"
 )
@@ -31,5 +32,5 @@ func main() {
 	fmt.Printf("HTTP Server Ready at http://%s\n", address)
 
 	http.Handle("/", http.FileServer(http.Dir(".")))
-	http.ListenAndServe(address, nil)
+	log.Fatal(http.ListenAndServe(address, nil))
 }