diff options
author | Chen Quan <terasum@163.com> | 2018-07-03 20:14:57 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-07-03 20:14:57 +0800 |
commit | 9da128db704d6ae11ec853bf38d6a4e7ac412fdb (patch) | |
tree | 25e0b07c1ab242541c5147236573c42d4c457a3f | |
parent | 4e5d1f1c39159de42511770bd390ad583ebd57a5 (diff) | |
download | dexon-9da128db704d6ae11ec853bf38d6a4e7ac412fdb.tar dexon-9da128db704d6ae11ec853bf38d6a4e7ac412fdb.tar.gz dexon-9da128db704d6ae11ec853bf38d6a4e7ac412fdb.tar.bz2 dexon-9da128db704d6ae11ec853bf38d6a4e7ac412fdb.tar.lz dexon-9da128db704d6ae11ec853bf38d6a4e7ac412fdb.tar.xz dexon-9da128db704d6ae11ec853bf38d6a4e7ac412fdb.tar.zst dexon-9da128db704d6ae11ec853bf38d6a4e7ac412fdb.zip |
cmd/p2psim: add exit error output and exit code (#17116)
-rw-r--r-- | cmd/p2psim/main.go | 5 |
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 { |