mirror of
https://github.com/nushell/nushell.git
synced 2025-04-30 08:04:25 +02:00
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;
|
ctrlcbreak = false;
|
||||||
}
|
}
|
||||||
rl.save_history("history.txt")?;
|
let _ = rl.save_history("history.txt");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user