mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 03:27:45 +02:00
Specify which file not found in error (#11868)
# Description Currently, `ShellError::FileNotFound` shows the span where the error occurred but doesn't say which file wasn't found. This PR makes it so the help includes that (like the `DirectoryNotFound` error). # User-Facing Changes No breaking changes, it's just that when a file can't be found, the help will say which file couldn't be found: 
This commit is contained in:
@ -120,6 +120,7 @@ impl Command for NuCheck {
|
||||
path
|
||||
} else {
|
||||
return Err(ShellError::FileNotFound {
|
||||
file: path_str.item,
|
||||
span: path_str.span,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user