Skip to content

Use Severity::Warning for miette warnings - #16146

Merged
sholderbach merged 1 commit into
nushell:mainfrom
132ikl:warning-diagnostic
Jul 10, 2025
Merged

sholderbach merged 1 commit into
nushell:mainfrom
132ikl:warning-diagnostic

Conversation

@132ikl

@132ikl 132ikl commented Jul 10, 2025

Copy link
Copy Markdown
Member

Description

Changes miette warnings to use Severity::Warning instead of the default Severity::Error. This shows them in a different color and with a different icon:

image

User-Facing Changes

  • Warnings now look less like errors

Tests + Formatting

N/A

After Submitting

N/A

@132ikl 132ikl mentioned this pull request Jul 10, 2025

@sholderbach sholderbach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@sholderbach
sholderbach merged commit 8943fcf into nushell:main Jul 10, 2025
@github-actions github-actions Bot added this to the v0.106.0 milestone Jul 10, 2025
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Aug 25, 2025
# Description


Changes miette warnings to use `Severity::Warning` instead of the
default `Severity::Error`. This shows them in a different color and with
a different icon:

<img width="650" height="266" alt="image"
src="https://github.com/user-attachments/assets/3ff0d3cf-ab1e-47f2-aff7-586ecea5a32a"
/>


# User-Facing Changes

* Warnings now look less like errors
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