Skip to content

Commit

Permalink
use connector error reason if present, for the refund error response
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankarSinghC committed Jan 3, 2025
1 parent d1ca2dd commit 4df1c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/hyperswitch_domain_models/src/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl RelayUpdate {
match response {
Err(error) => Self::ErrorUpdate {
error_code: error.code,
error_message: error.message,
error_message: error.reason.unwrap_or(error.message),
status: common_enums::RelayStatus::Failure,
},
Ok(response) => Self::StatusUpdate {
Expand Down

0 comments on commit 4df1c77

Please sign in to comment.