Skip to content

Commit

Permalink
Merge pull request #1634 from ipfs/fix/1633-ctl-error-code
Browse files Browse the repository at this point in the history
ctl: Set exit status to 1 when app.Run() fails
  • Loading branch information
hsanjuan committed Apr 12, 2022
2 parents e4b91af + 288e7f9 commit 4b351ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/ipfs-cluster-ctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4b351ca

Please sign in to comment.