Improved error message on http ListenAndServe
This commit is contained in:
1 parent
04ca3d2469
commit
c930ef38dc
1 file changed
+1
-1
+1
-1
@@ -142,7 +142,7 @@ func handleHttp(router *weave.Router) {
|
|||||||
address := fmt.Sprintf(":%d", weave.StatusPort)
|
address := fmt.Sprintf(":%d", weave.StatusPort)
|
||||||
err := http.ListenAndServe(address, nil)
|
err := http.ListenAndServe(address, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("ListenAndServe: ", err)
|
log.Fatal("Unable to create http listener: ", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user