Skip to content
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

Exit with nonzero return code on error #51

Open
JohnPMerrill opened this issue Feb 28, 2020 · 0 comments
Open

Exit with nonzero return code on error #51

JohnPMerrill opened this issue Feb 28, 2020 · 0 comments

Comments

@JohnPMerrill
Copy link
Contributor

policy-tool always exits with a code of 0, even when an error occurs, eg.

$ policy-tool -m ... -t ... -o ...

Error no policy specified
$ echo $?
0

This makes it difficult to determine whether it was successful when called from a script. When an error is encountered, policy-tool should return a nonzero error code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant