Skip to content

Handle checkout failure and propagate error message #173

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seer-by-sentry[bot]
Copy link

👋 Hi there! This PR was automatically generated by Autofix 🤖

This fix was triggered by Ido Shemesh.

Fixes ANDROID-10. The issue was that: Backend inventory validation failed for requested product quantity, causing a 500 response and triggering client-side error handling that threw an exception.

  • Parse the error response from the checkout API to extract the error message.
  • Propagate the error message to the processDeliveryItem method.
  • Update processDeliveryItem to accept an error message parameter.
  • Add a fallback error message if parsing fails.

If you have any questions or feedback for the Sentry team about this fix, please email [email protected] with the Run ID: 44902.

Copy link

codecov bot commented May 16, 2025

Codecov Report

Attention: Patch coverage is 0% with 22 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (c211625) to head (00cffc3).

Files with missing lines Patch % Lines
.../example/vu/android/empowerplant/MainFragment.java 0.00% 22 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #173   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         15      15           
  Lines        780     795   +15     
  Branches      43      44    +1     
=====================================
- Misses       780     795   +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants