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

Improve exception stack printing #36606

Merged
merged 1 commit into from
Jul 14, 2020
Merged

Improve exception stack printing #36606

merged 1 commit into from
Jul 14, 2020

Conversation

c42f
Copy link
Member

@c42f c42f commented Jul 10, 2020

The expanded stacktrace printing introduced in #36134 and the fact that
we no longer print errors in red (#36015) makes it harder to distinguish
distinct exceptions in the stack.

Add a newline for this, and print the "caused by" in dark red. Also remove
exception numbering, which was arguably not very helpful.

Arguably this (along with previous changes over time) fixes #31257.

Before:
before

After:
after

base/errorshow.jl Outdated Show resolved Hide resolved
The expanded stacktrace printing introduced in #36134 and the fact that
we no longer print errors in red (#36015) makes it harder to distinguish
distinct exceptions in the stack.

Add a newline for this, and print the "caused by" in error_color(). Also
remove exception numbering which was arguably not very helpful.
@c42f c42f force-pushed the cjf/excstack-printing-tweak branch from b47dc95 to 1766779 Compare July 14, 2020 10:27
@c42f c42f merged commit 29826c2 into master Jul 14, 2020
@c42f c42f deleted the cjf/excstack-printing-tweak branch July 14, 2020 22:58
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 11, 2020
The expanded stacktrace printing introduced in JuliaLang#36134 and the fact that
we no longer print errors in red (JuliaLang#36015) makes it harder to distinguish
distinct exceptions in the stack.

Add a newline for this, and print the "caused by" in error_color(). Also
remove exception numbering which was arguably not very helpful.
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.

Display of exception stacks could be better
4 participants