niieani/bash-oo-framework

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

vboufleur opened this issue · 2 comments

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?

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

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.