From 290400200827205a4d6ef6bb73b6513a18bbe01b Mon Sep 17 00:00:00 2001 From: JT Date: Tue, 7 Sep 2021 19:41:52 +1200 Subject: [PATCH] Make reedline prompt more resilient --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 58267f0f3..60da80eb6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -131,7 +131,10 @@ fn main() -> std::io::Result<()> { line_editor.clear_screen()?; } Err(err) => { - println!("Error: {:?}", err); + let message = err.to_string(); + if !message.contains("duration") { + println!("Error: {:?}", err); + } } } current_line += 1;