forked from extern/nushell
Improve erroring of config nu
and config env
(#6730)
* improve errors for `config nu` and `config env` * fix tests
This commit is contained in:
@ -284,12 +284,12 @@ fn source_env_is_scoped() {
|
||||
|
||||
let actual = nu!(cwd: dirs.test(), pipeline(&inp.join("; ")));
|
||||
|
||||
assert!(actual.err.contains("can't run executable"));
|
||||
assert!(actual.err.contains("executable was not found"));
|
||||
|
||||
let inp = &[r#"source-env spam.nu"#, r#"nor-similar-to-this"#];
|
||||
|
||||
let actual = nu!(cwd: dirs.test(), pipeline(&inp.join("; ")));
|
||||
|
||||
assert!(actual.err.contains("can't run executable"));
|
||||
assert!(actual.err.contains("executable was not found"));
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user