mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-03 06:42:57 +00:00
cmd/p2psim: add exit error output and exit code (#17116)
This commit is contained in:
parent
4e5d1f1c39
commit
9da128db70
1 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
func showNetwork(ctx *cli.Context) error {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue