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

2
wrp.go
View File

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