Skip to content

Convert more ShellError variants to named fields - #11222

Merged
sholderbach merged 13 commits into
nushell:mainfrom
drbrain:shellerror-fields-2
Dec 4, 2023
Merged

sholderbach merged 13 commits into
nushell:mainfrom
drbrain:shellerror-fields-2

Conversation

@drbrain

@drbrain drbrain commented Dec 4, 2023

Copy link
Copy Markdown
Contributor

Description

Convert errors to named fields:

  • NeedsPositiveValue
  • MissingConfigValue
  • UnsupportedConfigValue
  • DowncastNotPossible
  • NonUtf8Custom
  • NonUtf8
  • DidYouMeanCustom
  • DidYouMean
  • ReadingFile
  • RemoveNotPossible
  • ChangedModifiedTimeNotPossible
  • ChangedAccessTimeNotPossible

Part of #10700

User-Facing Changes

None

Tests + Formatting

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

After Submitting

N/A

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

Awesome!

@sholderbach
sholderbach merged commit 67eec92 into nushell:main Dec 4, 2023
@drbrain
drbrain deleted the shellerror-fields-2 branch December 4, 2023 17:52
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
# Description

Convert errors to named fields:
* NeedsPositiveValue
* MissingConfigValue
* UnsupportedConfigValue
* DowncastNotPossible
* NonUtf8Custom
* NonUtf8
* DidYouMeanCustom
* DidYouMean
* ReadingFile
* RemoveNotPossible
* ChangedModifiedTimeNotPossible
* ChangedAccessTimeNotPossible

Part of nushell#10700
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this pull request Feb 20, 2024
# Description

Convert errors to named fields:
* NeedsPositiveValue
* MissingConfigValue
* UnsupportedConfigValue
* DowncastNotPossible
* NonUtf8Custom
* NonUtf8
* DidYouMeanCustom
* DidYouMean
* ReadingFile
* RemoveNotPossible
* ChangedModifiedTimeNotPossible
* ChangedAccessTimeNotPossible

Part of nushell#10700
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