Skip to content
Snippets Groups Projects
Verified Commit 410bdf97 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Ensure we actually panic if we can’t listen

parent 783fd2e1
Branches
No related tags found
No related merge requests found
......@@ -81,7 +81,9 @@ func main() {
w.WriteHeader(http.StatusOK)
})
http.ListenAndServe(fmt.Sprintf(":8080"), nil)
if err := http.ListenAndServe(fmt.Sprintf(":8080"), nil); err != nil {
panic(err)
}
}
func errorHandler(errorFilesPath string) func(http.ResponseWriter, *http.Request) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment