ctl: Set exit status to 1 when app.Run() fails
1 corresponds to arguments errors and anything that prevents the app from making a request.
This commit is contained in:
parent
e4b91af901
commit
288e7f9e3d
|
@ -1109,7 +1109,10 @@ deamon, otherwise on all IPFS daemons.
|
|||
},
|
||||
}
|
||||
|
||||
app.Run(os.Args)
|
||||
err := app.Run(os.Args)
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func localFlag() cli.BoolFlag {
|
||||
|
|
Loading…
Reference in New Issue
Block a user