aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/p2psim/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/p2psim/main.go')
-rw-r--r--cmd/p2psim/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/p2psim/main.go b/cmd/p2psim/main.go
index d32c29863..6604b671f 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 {