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 71c6ed4dbf - Show all commits
+4 -1
View File
@@ -824,7 +824,10 @@ pub mod endpoint {
}
Err(err) => {
let song_path = song.song_path();
response.message = format!("{err:?} Song directory: {} Filename: {} Save Path: {:?} Song Path: {:?}", song.directory, song.filename, save_path, song_path);
response.message = format!(
"{err:?} Song directory: {} Filename: {} Save Path: {:?} Song Path: {:?}",
song.directory, song.filename, save_path, song_path
);
(
axum::http::StatusCode::INTERNAL_SERVER_ERROR,
axum::Json(response),