mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 23:37:48 +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:
@ -117,7 +117,9 @@ impl Command for NuCheck {
|
||||
if let Some(path) = path {
|
||||
path
|
||||
} else {
|
||||
return Err(ShellError::FileNotFound(path_str.span));
|
||||
return Err(ShellError::FileNotFound {
|
||||
span: path_str.span,
|
||||
});
|
||||
}
|
||||
}
|
||||
Err(error) => return Err(error),
|
||||
|
Reference in New Issue
Block a user