Skip to content

Commit

Permalink
fix: print errors from photo upload
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Feb 24, 2024
1 parent f08ff02 commit 53a7335
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/site-app/src/components/photo_upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ pub async fn photo_upload(
},
)
.await
.map_err(|e| ServerFnError::new(format!("Failed to upload photo: {}", e)))?;
.map_err(|e| {
let error = format!("Failed to upload photo: {:?}", e);
tracing::error!("{error}");
ServerFnError::new(error)
})?;

Ok(photo_group.id)
}

0 comments on commit 53a7335

Please sign in to comment.