From 05202671dbd4e64e3b11ecf9cc14fc47e1e013ba Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Sat, 19 Dec 2020 18:24:56 +1300 Subject: [PATCH] Improve errors on success (#2801) --- crates/nu-cli/src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index bbe0518f3..893293d8d 100644 --- a/crates/nu-cli/src/cli.rs +++ b/crates/nu-cli/src/cli.rs @@ -528,7 +528,7 @@ pub async fn cli(mut context: EvaluationContext) -> Result<(), Box> { LineResult::Success(line) => { rl.add_history_entry(&line); let _ = rl.save_history(&history_path); - context.maybe_print_errors(Text::from(line)); + context.maybe_print_errors(Text::from(session_text.clone())); } LineResult::ClearHistory => {