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

Propagate exception to impact return code of command #229

Merged
merged 2 commits into from
Feb 18, 2019

Conversation

DSchrupert
Copy link
Member

@DSchrupert DSchrupert commented Feb 17, 2019

Currently when codegen fails the exception is printed to the screen but the return code of execution is still 0 (successful). This is happening since the exception is caught and printed but never propagated to main. This change should ensure exceptions are bubbled all the way up and the return code will be non-zero if codegen fails.

@DSchrupert DSchrupert changed the title Propagate exception to impact return code of command Currently when codegen fails the exception is printed to the screen but the return code of execution is still 0 (successful). This is happening since the exception is caught and printed but never propagated to main. This change should ensure exceptions are bubbled all the way up and the return code will be non-zero if codegen fails. Propagate exception to impact return code of command Feb 17, 2019
@stevehu stevehu merged commit 1450559 into develop Feb 18, 2019
@stevehu
Copy link
Contributor

stevehu commented Feb 18, 2019

@stevehu stevehu deleted the fix/propagate-error branch February 20, 2019 00:14
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.

4 participants