Improve errors on success (#2801)

This commit is contained in:
Jonathan Turner 2020-12-19 18:24:56 +13:00 committed by GitHub
parent 8509873043
commit 05202671db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -528,7 +528,7 @@ pub async fn cli(mut context: EvaluationContext) -> Result<(), Box<dyn Error>> {
LineResult::Success(line) => { LineResult::Success(line) => {
rl.add_history_entry(&line); rl.add_history_entry(&line);
let _ = rl.save_history(&history_path); let _ = rl.save_history(&history_path);
context.maybe_print_errors(Text::from(line)); context.maybe_print_errors(Text::from(session_text.clone()));
} }
LineResult::ClearHistory => { LineResult::ClearHistory => {