mirror of
https://github.com/nushell/nushell
synced 2024-11-13 08:27:06 +00:00
Make reedline prompt more resilient
This commit is contained in:
parent
eccf0b9903
commit
2904002008
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue