Skip to content

Propagate exception to impact return code of command#229

Merged
stevehu merged 2 commits intodevelopfrom
fix/propagate-error
Feb 18, 2019
Merged

Propagate exception to impact return code of command#229
stevehu merged 2 commits intodevelopfrom
fix/propagate-error

Conversation

@DSchrupert
Copy link
Copy Markdown
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
Copy Markdown
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