Skip to content

Commit a339d8e

Browse files
fix(parser): add specific error message for NotFound CantDoReason
1 parent 0c864b3 commit a339d8e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/parser/dms.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,9 @@ pub async fn print_commands_results(message: &MessageKind, ctx: &Context) -> Res
653653
println!("📊 Please use a valid currency");
654654
Err(anyhow::anyhow!("Invalid currency"))
655655
}
656+
Some(Payload::CantDo(Some(CantDoReason::NotFound))) => Err(anyhow::anyhow!(
657+
"Resource not found. Verify the order or dispute id exists."
658+
)),
656659
_ => {
657660
println!("❓ Unknown Error");
658661
println!("💡 An unknown error occurred");

0 commit comments

Comments
 (0)