Commit 9da128db authored by Chen Quan's avatar Chen Quan Committed by Péter Szilágyi

cmd/p2psim: add exit error output and exit code (#17116)

parent 4e5d1f1c
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment