print error message when failed to start server

This commit is contained in:
Antoni Sawicki 2019-06-08 17:30:30 -07:00
parent 64f86b4fd9
commit d9381ef71a
1 changed files with 1 additions and 1 deletions

2
wrp.go
View File

@ -284,5 +284,5 @@ func main() {
http.HandleFunc("/favicon.ico", http.NotFound)
log.Printf("Web Rendering Proxy Version %s\n", version)
log.Printf("Starting WRP http server on %s\n", addr)
http.ListenAndServe(addr, nil)
log.Fatal(http.ListenAndServe(addr, nil))
}