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

Add exception handler in spec at_exit #10106

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

straight-shoota
Copy link
Member

Exceptions bubbling up from at_exit handlers are printed without backtrace by default, but since the entire spec run happens in an at_exit handler, we should make sure to have full error reporting.

Exceptions bubbling up from at_exit handlers are printed without
backtrace by default, but since the entire spec run happens in an
at_exit handler, we should make sure to have full error reporting.
@oprypin
Copy link
Member

oprypin commented Dec 19, 2020

Singlehandedly +10% to productivity when porting things to Windows

@asterite
Copy link
Member

Can we change at_exit?

@straight-shoota
Copy link
Member Author

Maybe... I'm not sure about the reasoning for not skipping the backtraces. It basically has been like this since forever.

I just want to improve specs behaviour. Always printing backtraces from exit handlers would work for that.

@straight-shoota straight-shoota added this to the 1.0.0 milestone Dec 30, 2020
@bcardiff bcardiff merged commit 82406f0 into crystal-lang:master Jan 11, 2021
@straight-shoota straight-shoota deleted the fix/spec-exception branch January 11, 2021 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants