Print return value when starting HTTP handler for better error display

This commit is contained in:
Sean DuBois 2014-06-27 14:10:35 +00:00
parent 6ac04f33cf
commit 3b85ffd1fc

View file

@ -43,5 +43,5 @@ func main() {
jailHandler(r.PathPrefix("/jail").Subrouter(), fail2goConn) jailHandler(r.PathPrefix("/jail").Subrouter(), fail2goConn)
http.Handle("/", r) http.Handle("/", r)
http.ListenAndServe(configuration.Addr, nil) fmt.Println(http.ListenAndServe(configuration.Addr, nil))
} }