-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(connector): [CASHTOCODE] Populate error reason #7154
base: main
Are you sure you want to change the base?
Conversation
Changed Files
|
message: response.error_description, | ||
reason: None, | ||
message: response.error_description.clone(), | ||
reason: Some(response.error_description.clone()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reason: Some(response.error_description.clone()), | |
reason: Some(response.error_description), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have resolved it, thanks
message: error_data.error_description, | ||
reason: None, | ||
message: error_data.error_description.clone(), | ||
reason: Some(error_data.error_description.clone()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reason: Some(error_data.error_description.clone()), | |
reason: Some(error_data.error_description), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have resolved it, thanks
Type of Change
Description
Error message from cashtocode is now populated in error reason along with error message as well.
Additional Changes
Motivation and Context
Issue Link: #7155
How did you test it?
Cashtocode cannot be tested locally due to unavailability of credentials.
Checklist
cargo +nightly fmt --all
cargo clippy