mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 21:37:54 +02:00
Convert FileNotFound to named fields (#11120)
# Description Part of #10700 # User-Facing Changes None # Tests + Formatting - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - 🟢 `toolkit test` - 🟢 `toolkit test stdlib` # After Submitting N/A
This commit is contained in:
@ -713,7 +713,10 @@ pub enum ShellError {
|
||||
/// Does the file in the error message exist? Is it readable and accessible? Is the casing right?
|
||||
#[error("File not found")]
|
||||
#[diagnostic(code(nu::shell::file_not_found))]
|
||||
FileNotFound(#[label("file not found")] Span),
|
||||
FileNotFound {
|
||||
#[label("file not found")]
|
||||
span: Span,
|
||||
},
|
||||
|
||||
/// Failed to find a file during a nushell operation.
|
||||
///
|
||||
|
Reference in New Issue
Block a user