Added error checking for file creation in create metadata endpoint #154

Merged
kdeng00 merged 7 commits from create_metadata_fix into v0.2 2025-07-14 19:42:07 -04:00
Showing only changes of commit 9b1c0b718f - Show all commits
+1 -1
View File
@@ -793,9 +793,9 @@ pub mod endpoint {
}
}
}
let save_path = dir.join(&song.filename);
// let mut file = std::fs::File::create(&save_path).unwrap();
match std::fs::File::create(&save_path) {
Ok(mut file) => {
file.write_all(&song.data).unwrap();