forked from extern/nushell
Avoid panicking if history can't be saved.
This commit is contained in:
parent
ca11dc2031
commit
91093f2ab2
@ -297,7 +297,7 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
ctrlcbreak = false;
|
||||
}
|
||||
rl.save_history("history.txt")?;
|
||||
let _ = rl.save_history("history.txt");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user