Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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