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

Fix stacktrace printing in DEBUG=1 mode. Fixes #1347. #1351

Merged
merged 1 commit into from
Oct 13, 2016

Conversation

ElectronicRU
Copy link

erlang:get_stacktrace() gets the last stacktrace, regardless of where it was caught, so it is not wise to call it multiple times.

It turns out that pretty-printing uses throw-catch and thus garbages out
the stack trace sometimes, so we should get it only once.
@ferd
Copy link
Collaborator

ferd commented Oct 13, 2016

Good catch! Thanks!

@ferd ferd merged commit 65f66da into erlang:master Oct 13, 2016
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.

2 participants