Skip to content

Convert more ShellError variants to named fields - #11173

Merged
fdncred merged 10 commits into
nushell:mainfrom
drbrain:shellerror-fields
Nov 28, 2023
Merged

fdncred merged 10 commits into
nushell:mainfrom
drbrain:shellerror-fields

Conversation

@drbrain

@drbrain drbrain commented Nov 28, 2023

Copy link
Copy Markdown
Contributor

Description

Convert these ShellError variants to named fields:

  • CreateNotPossible
  • MoveNotPossibleSingle
  • DirectoryNotFoundCustom
  • DirectoryNotFound
  • NotADirectory
  • OutOfMemoryError
  • PermissionDeniedError
  • IOErrorSpanned
  • IOError
  • IOInterrupted

Also place the span field of DirectoryNotFound last to match other errors.

Part of #10700 (almost half done!)

User-Facing Changes

None

Tests + Formatting

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

After Submitting

N/A

@fdncred

fdncred commented Nov 28, 2023

Copy link
Copy Markdown
Contributor

Thanks for continuing to chip away at this.

@fdncred
fdncred merged commit 8386bc0 into nushell:main Nov 28, 2023
@drbrain
drbrain deleted the shellerror-fields branch November 28, 2023 17:48
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
# Description

Convert these ShellError variants to named fields:
* CreateNotPossible
* MoveNotPossibleSingle
* DirectoryNotFoundCustom
* DirectoryNotFound
* NotADirectory
* OutOfMemoryError
* PermissionDeniedError
* IOErrorSpanned
* IOError
* IOInterrupted

Also place the `span` field of `DirectoryNotFound` last to match other
errors.

Part of nushell#10700 (almost half done!)

# User-Facing Changes

None

# Tests + Formatting

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

N/A
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this pull request Feb 20, 2024
# Description

Convert these ShellError variants to named fields:
* CreateNotPossible
* MoveNotPossibleSingle
* DirectoryNotFoundCustom
* DirectoryNotFound
* NotADirectory
* OutOfMemoryError
* PermissionDeniedError
* IOErrorSpanned
* IOError
* IOInterrupted

Also place the `span` field of `DirectoryNotFound` last to match other
errors.

Part of nushell#10700 (almost half done!)

# User-Facing Changes

None

# Tests + Formatting

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

N/A
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