Fix error handling in api

This commit is contained in:
Urban Guacamole
2021-12-03 12:29:12 +01:00
parent bc04c150ad
commit 2abcb39b47

View File

@@ -133,5 +133,8 @@ func main() {
w.Write(marshaledResults)
})
http.ListenAndServe(":8000", nil)
err := http.ListenAndServe(":8000", nil)
if err != nil {
log.Fatal(err)
}
}