diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index 75ba8ad9e..e823809b7 100644 --- a/crates/nu-cli/src/cli.rs +++ b/crates/nu-cli/src/cli.rs @@ -676,9 +676,8 @@ async fn process_line( break; } } - _ => { - break; - } + Ok(None) => break, + Err(e) => return LineResult::Error(line.to_string(), e), } } }