Skip to content

Conversation

@kim
Copy link
Contributor

@kim kim commented Jul 8, 2025

The display impl of the error prints a stack trace, which is not
particularly helpful given it is usually a user error.

Use the alternate format ({:#}) instead, which makes anyhow display a
single line and no backtrace.

Expected complexity level and risk

1 -- Only changes how the error is rendered

Testing

  • Run a smoketest that yields an execution error, e.g.
    test_add_then_remove_index, and convince yourself that one line is
    sufficient

The display impl of the error prints a stack trace, which is not
particularly helpful given it is usually a user error.

Use the alternate format (`{:#}`) instead, which makes anyhow display a
single line and no backtrace.
@kim kim requested a review from kazimuth July 8, 2025 13:20
Copy link
Contributor

@kazimuth kazimuth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kim kim added this pull request to the merge queue Jul 9, 2025
Merged via the queue into master with commit ae21aae Jul 9, 2025
20 checks passed
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.

3 participants