Improve some errors, streamline internal error handling (#2839)

* Improve some errors, streamline internal error handling

* Fix lints
This commit is contained in:
Jonathan Turner
2021-01-02 08:52:19 +13:00
committed by GitHub
parent 48f535f02e
commit 452d8c06e9
8 changed files with 46 additions and 50 deletions

View File

@ -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"));
})
}

View 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{}",