From b56a7fb5ef32aa40a25d1bc39a698e72921f681b Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Wed, 14 Jun 2017 11:05:19 +0200 Subject: [PATCH] p2p/simulations/examples: Log errors Signed-off-by: Lewis Marshall --- p2p/simulations/examples/connectivity.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/p2p/simulations/examples/connectivity.go b/p2p/simulations/examples/connectivity.go index 95b7c8be7e..4e74211787 100644 --- a/p2p/simulations/examples/connectivity.go +++ b/p2p/simulations/examples/connectivity.go @@ -67,7 +67,9 @@ func main() { } log.Info("starting simulation server on 0.0.0.0:8888...") - http.ListenAndServe(":8888", simulations.NewServer(config)) + if err := http.ListenAndServe(":8888", simulations.NewServer(config)); err != nil { + log.Crit("error starting simulation server", "err", err) + } } // pingPongService runs a ping-pong protocol between nodes where each node