mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 10:36:00 +02:00
Map DirectoryNotFound
to FileNotFound
for open
command (#10089)
# Description This PR should close #10085 Maps `DirectoryNotFound` errors to `FileNotFound`. All other errors are left unchanged. # User-Facing Changes This means a user will see `FileNotFound` instead of `DirectoryNotFound` which is more meaning full to the user.
This commit is contained in:
@ -169,7 +169,7 @@ fn errors_if_file_not_found() {
|
||||
//
|
||||
// This seems to be not directly affected by localization compared to the OS
|
||||
// provided error message
|
||||
let expected = "not found";
|
||||
let expected = "File not found";
|
||||
|
||||
assert!(
|
||||
actual.err.contains(expected),
|
||||
|
Reference in New Issue
Block a user