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:
Hector Sanjuan 2022-04-12 11:49:26 +02:00
parent e4b91af901
commit 288e7f9e3d

View File

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