forked from extern/nushell
Convert FileNotFoundCustom to named fields (#11123)
# 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:
@ -725,7 +725,11 @@ 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))]
|
||||
FileNotFoundCustom(String, #[label("{0}")] Span),
|
||||
FileNotFoundCustom {
|
||||
msg: String,
|
||||
#[label("{msg}")]
|
||||
span: Span,
|
||||
},
|
||||
|
||||
/// A plugin failed to load.
|
||||
///
|
||||
|
Reference in New Issue
Block a user