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

Re-raise an exception if one is thrown while executing mn #1109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cheriimoya
Copy link
Contributor

We should not simply exit cleanly without any output.
This change will make the mn script exit with the exit code 1 and also
print the exception in the terminal.

Closes #868

We should not simply exit cleanly without any output.
This change will make the mn script exit with the exit code 1 and also
print the exception in the terminal.
@lantz
Copy link
Member

lantz commented Apr 5, 2022

What is the rationale for reraising the exception?

@cheriimoya
Copy link
Contributor Author

i think the user should see what went wrong and also mn should exit with a non-zero exit code. we could also print a stack trace and exit with sys.exit(1) but it did seem easier for me to simply raise the exception again

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.

mn --test produces exit code 0 even when test fails
2 participants