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

This commit is contained in:
Chen Quan 2018-07-03 20:14:57 +08:00 committed by Kiel barry
parent a4dbe33155
commit 7345ae8e7d

View file

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