diff --git a/cmd/p2psim/main.go b/cmd/p2psim/main.go index d32c298631490299789c140c62a1536bf51023f4..6604b671fcc4aed3b73b380c7860dda8fce1bf25 100644 --- a/cmd/p2psim/main.go +++ b/cmd/p2psim/main.go @@ -180,7 +180,10 @@ func main() { }, }, } - app.Run(os.Args) + if err := app.Run(os.Args); err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } } func showNetwork(ctx *cli.Context) error {