p2p/simulations/examples: Log errors

Signed-off-by: Lewis Marshall <lewis@lmars.net>
This commit is contained in:
Lewis Marshall 2017-06-14 11:05:19 +02:00
parent be95e9ecb3
commit b56a7fb5ef

View file

@ -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