From 0d244a97011000d4d9b522ac312d68023480d0e3 Mon Sep 17 00:00:00 2001 From: Sosthene-Guedon <51865119+Sosthene-Guedon@users.noreply.github.com> Date: Tue, 17 Mar 2020 05:40:04 +0100 Subject: [PATCH] Open fails silently, fix #1493 (#1495) * Fix #1493 The error was wrongfully discarded * Run cargo fmt --- crates/nu-cli/src/cli.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index 75ba8ad9ed..e823809b72 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), } } }