We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85a3dda commit aba6824Copy full SHA for aba6824
brush-interactive/src/interactive_shell.rs
@@ -52,11 +52,14 @@ impl InteractiveShell {
52
53
let mut editor = Self::new_editor(options, shell)?;
54
if let Some(history_file_path) = &history_file_path {
55
+ // If the history file doesn't already exist, then make a best-effort attempt.
56
+ // to create it.
57
if !history_file_path.exists() {
- std::fs::File::create(history_file_path)?;
58
+ let _ = std::fs::File::create(history_file_path);
59
}
60
- editor.load_history(history_file_path)?;
61
+ // Make a best effort attempt to load the history file.
62
+ let _ = editor.load_history(history_file_path);
63
64
65
Ok(InteractiveShell {
0 commit comments