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

release/1.8
Chen Quan 6 years ago committed by Péter Szilágyi
parent 4e5d1f1c39
commit 9da128db70
  1. 5
      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 {

Loading…
Cancel
Save