Skip to content

Commit

Permalink
Improve error message for saving history
Browse files Browse the repository at this point in the history
  • Loading branch information
fsktom committed Mar 9, 2023
1 parent ce83404 commit c5863d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ pub fn start(entries: &SongEntries) {
match rl.save_history(history_path) {
Ok(_) => (),
Err(e) => {
eprintln!("Failed to save history to file .trane_history: {e}");
eprintln!(
"Failed to save history to file {}: {e}",
&history_path.to_str().unwrap()
);
}
}
}
Expand Down

0 comments on commit c5863d4

Please sign in to comment.