mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 00:29:46 +02:00
Exit early when encountering parsing errors (#10213)
# Description This PR tries to fix #10184 and #10182.
This commit is contained in:
@@ -6,3 +6,13 @@ fn source_file_relative_to_file() {
|
||||
|
||||
assert!(actual.err.contains("redefined"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn run_file_parse_error() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/eval",
|
||||
"nu script.nu"
|
||||
);
|
||||
|
||||
assert!(actual.err.contains("unknown type"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user