-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
amtool should exit non-zero on error #898
Comments
Good Idea. I'll work on adding this |
After taking a look i'm pretty sure it already does this
Am I missing something? Edit: formatting |
Oh it's not consistent
I see the issue now |
Kellel
pushed a commit
to Kellel/alertmanager
that referenced
this issue
Aug 2, 2017
Exit with error code from subcommands as well as root command
@jjneely Thanks for submitting a bug! |
iksaif
pushed a commit
to iksaif/alertmanager
that referenced
this issue
Sep 15, 2017
Exit with error code from subcommands as well as root command
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
amtool should have a non-zero exit code during error so that failure can be detected easily by automation scripts. It look like the error object returned by commands is printed and then discarded here:
https://github.com/prometheus/alertmanager/blob/master/cli/utils.go#L90
The text was updated successfully, but these errors were encountered: