Skip to content

Commit

Permalink
Add error print
Browse files Browse the repository at this point in the history
  • Loading branch information
Spider committed Nov 8, 2023
1 parent 5c13156 commit 0359763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ fn save_file(path: String, audio_info_string: String) {
let audioinfo_file_path = Path::new(&path);
if let Ok(mut file) = fs::File::create(audioinfo_file_path) {
if let Err(e) = file.write_all(audio_info_string.as_bytes()) {
println!("Error writing to audioinfo file: {}", e);
eprintln!("Error writing to audioinfo file: {}", e);
}
} else {
println!("Error creating audioinfo file");
eprintln!("Error creating audioinfo file");
}
}

0 comments on commit 0359763

Please sign in to comment.