Skip to content

Remove BACKTRACE message for non-panic errors#15143

Merged
WindSoilder merged 1 commit intonushell:mainfrom
NotTheDr01ds:remove-backtrace-message
Feb 20, 2025
Merged

Remove BACKTRACE message for non-panic errors#15143
WindSoilder merged 1 commit intonushell:mainfrom
NotTheDr01ds:remove-backtrace-message

Conversation

@NotTheDr01ds
Copy link
Copy Markdown
Contributor

@NotTheDr01ds NotTheDr01ds commented Feb 19, 2025

Description

Resolves #15070 by removing the BACKTRACE message from all Nushell (non-panic) errors. This was added in #14945 and is useful for debugging, but not all that helpful to the typical shell user, especially since most shell errors won't have a backtrace anyway.

At some point it would be nice to display this message only when there is a backtrace available.

User-Facing Changes

Error messages will be more concise.

Tests + Formatting

Updated tests.

  • 🟢 toolkit fmt
  • 🟢 toolkit clippy
  • 🟢 toolkit test
  • 🟢 toolkit test stdlib

After Submitting

We should include information in the "Custom Commands" chapter of the documentation on how to enable this for debugging.

Copy link
Copy Markdown
Contributor

@WindSoilder WindSoilder left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@WindSoilder WindSoilder merged commit 4a967d1 into nushell:main Feb 20, 2025
15 checks passed
@github-actions github-actions bot added this to the v0.103.0 milestone Feb 20, 2025
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.

Nushell error messages should only display "backtrace" info message when it will change the output

2 participants