Make reedline prompt more resilient

This commit is contained in:
JT 2021-09-07 19:41:52 +12:00
parent eccf0b9903
commit 2904002008

View file

@ -131,7 +131,10 @@ fn main() -> std::io::Result<()> {
line_editor.clear_screen()?; line_editor.clear_screen()?;
} }
Err(err) => { Err(err) => {
println!("Error: {:?}", err); let message = err.to_string();
if !message.contains("duration") {
println!("Error: {:?}", err);
}
} }
} }
current_line += 1; current_line += 1;