mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 10:36:00 +02:00
Improve some errors, streamline internal error handling (#2839)
* Improve some errors, streamline internal error handling * Fix lints
This commit is contained in:
@ -80,6 +80,6 @@ fn errors_if_file_not_found() {
|
||||
"enter i_dont_exist.csv"
|
||||
);
|
||||
|
||||
assert!(actual.err.contains("Cannot canonicalize"));
|
||||
assert!(actual.err.contains("Cannot find file"));
|
||||
})
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ fn errors_if_file_not_found() {
|
||||
cwd: "tests/fixtures/formats",
|
||||
"open i_dont_exist.txt"
|
||||
);
|
||||
let expected = "Cannot canonicalize";
|
||||
let expected = "Cannot find file";
|
||||
assert!(
|
||||
actual.err.contains(expected),
|
||||
"Error:\n{}\ndoes not contain{}",
|
||||
|
Reference in New Issue
Block a user