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

Prune unused ShellError variants #11883

Merged
merged 5 commits into from Feb 18, 2024

Conversation

sholderbach
Copy link
Member

Description

Same procedure as #11881

Remove unused variants to avoid confusion and foster better practices around error variants.

  • Remove SE::PermissionDeniedError
  • Remove SE::OutOfMemoryError
  • Remove SE::DirectoryNotFoundCustom
  • Remove SE::MoveNotPossibleSingle
  • Remove SE::NonUnicodeInput

User-Facing Changes

Plugin authors may have matched against or emitted those variants

@IanManske
Copy link
Member

Nice! This will help us to consolidate/standardize our use of different errors.

Copy link
Collaborator

@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!

@WindSoilder WindSoilder merged commit 28f0f32 into nushell:main Feb 18, 2024
19 checks passed
@hustcer hustcer added this to the v0.91.0 milestone Feb 18, 2024
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this pull request Feb 20, 2024
# Description
Same procedure as nushell#11881

Remove unused variants to avoid confusion and foster better practices
around error variants.

- Remove `SE::PermissionDeniedError`
- Remove `SE::OutOfMemoryError`
- Remove `SE::DirectoryNotFoundCustom`
- Remove `SE::MoveNotPossibleSingle`
- Remove `SE::NonUnicodeInput`

# User-Facing Changes
Plugin authors may have matched against or emitted those variants
kik4444 pushed a commit to kik4444/nushell-fork that referenced this pull request Feb 28, 2024
# Description
Same procedure as nushell#11881

Remove unused variants to avoid confusion and foster better practices
around error variants.

- Remove `SE::PermissionDeniedError`
- Remove `SE::OutOfMemoryError`
- Remove `SE::DirectoryNotFoundCustom`
- Remove `SE::MoveNotPossibleSingle`
- Remove `SE::NonUnicodeInput`

# User-Facing Changes
Plugin authors may have matched against or emitted those variants
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.

None yet

4 participants