Skip to content

Commit

Permalink
Add error variable on match error block
Browse files Browse the repository at this point in the history
  • Loading branch information
grunch committed Jan 13, 2025
1 parent 362f5f5 commit 1e20e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/fiat_sent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub async fn fiat_sent_action(
// and update on local database the status and new event id
let mut order_updated = match update_order_event(my_keys, Status::FiatSent, &order).await {
Ok(order) => order.update(pool).await?,
Err(_) => {
Err(e) => {
error!("Failed to update order {}: {}", order.id, e);
return Ok(());
}
Expand Down

0 comments on commit 1e20e1c

Please sign in to comment.