Skip to content

Commit

Permalink
Update src/app/dispute.rs
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
arkanoider and coderabbitai[bot] authored Nov 11, 2024
1 parent 301475c commit 3bb1110
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/dispute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ async fn get_valid_order(
&event.sender,
)
.await;
return Err(Error::msg("Order status does not allow disputes"));
return Err(Error::msg(format!(
"Order {} with status {} does not allow disputes. Must be Active or FiatSent",
order.id, order.status
)));
}
}
Err(_) => {
Expand Down

0 comments on commit 3bb1110

Please sign in to comment.