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

fix: exit with non-zero status on exception #640

Merged
merged 2 commits into from
Jun 19, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Exit with non-zero status when an exception is raised.

Fixes #635

How I did it

Use sys.exit to print the exception message in brownie/_cli/__main__.py - this results in an exit code of 1.

How to verify it

Do something wrong.

@iamdefinitelyahuman iamdefinitelyahuman merged commit 53cd093 into master Jun 19, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-exit-code branch June 19, 2020 12:09
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

Successfully merging this pull request may close these issues.

brownie compile errors, but exits 0
1 participant