actually handle any http server errors
This commit is contained in:
parent
177556399d
commit
d771ddb3d3
|
@ -29,6 +29,9 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// and finally, start the server
|
// and finally, start the server
|
||||||
app.Logger.Printf("Listening on port %d", app.ListenPort)
|
app.Logger.Printf("Starting HTTP Server on port %d", app.ListenPort)
|
||||||
srv.ListenAndServe()
|
err := srv.ListenAndServe()
|
||||||
|
if err != nil {
|
||||||
|
app.Logger.Fatal("Failed to start HTTP Server!", "err", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue