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

util/exception.sh shows stack trace as expected but don't exit on Ctrl+C #81

Open
vboufleur opened this issue Mar 7, 2019 · 2 comments
Labels

Comments

@vboufleur
Copy link

Hi all!

As the title says, util/exception.sh shows stack trace as expected but don't exit on Ctrl+C.

The script just keeps running, just as if I have pressed Enter.

Is this a bug? A incorrect implementation of my part?

@vboufleur
Copy link
Author

Is there a way for me to configure util/exception.sh to always exit if a error happens? This would solve my current issue.

@niieani
Copy link
Owner

niieani commented Mar 15, 2019

Hi @vboufleur, I think I stumbled upon this issue too - I think it's a bug.

As to your second question, I think there's a way. Change this line:

to exit 0 or exit 1.

@niieani niieani added the bug label Mar 15, 2019
aadrian added a commit to aadrian/bash-oo-framework that referenced this issue Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants