Merge pull request #31 from jntrnr/make_prompt_more_resilient

Make reedline prompt more resilient
This commit is contained in:
JT 2021-09-07 19:44:45 +12:00 committed by GitHub
commit ed6abced5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;