Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Debarshi-Gupta
Copy link
Contributor

@Debarshi-Gupta Debarshi-Gupta commented Jan 31, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Error message from cashtocode is now populated in error reason along with error message as well.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

Issue Link: #7155

How did you test it?

Cashtocode cannot be tested locally due to unavailability of credentials.

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@Debarshi-Gupta Debarshi-Gupta self-assigned this Jan 31, 2025
@Debarshi-Gupta Debarshi-Gupta requested a review from a team as a code owner January 31, 2025 09:49
Copy link

semanticdiff-com bot commented Jan 31, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/cashtocode.rs  0% smaller
  crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs  0% smaller

@Debarshi-Gupta Debarshi-Gupta added the A-connector-integration Area: Connector integration label Jan 31, 2025
@Debarshi-Gupta Debarshi-Gupta linked an issue Jan 31, 2025 that may be closed by this pull request
2 tasks
message: response.error_description,
reason: None,
message: response.error_description.clone(),
reason: Some(response.error_description.clone()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
reason: Some(response.error_description.clone()),
reason: Some(response.error_description),

Copy link
Contributor Author

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()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
reason: Some(error_data.error_description.clone()),
reason: Some(error_data.error_description),

Copy link
Contributor Author

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

@deepanshu-iiitu deepanshu-iiitu changed the title fix(connector): [CASHTOCODE] Fixed error description not appearing fix(connector): [CASHTOCODE] Populate error reason Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-connector-integration Area: Connector integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] CASHTOCODE Error Message appearing as null
2 participants