Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
If the API calls to the Digital Commerce API fail, the module catches the error properly, but there is no information about which order caused the error. This would be especially useful when using the action in batches. Currently the user has to guess which order failed and is unable to use the batch functionality.
Currently #3216580: Issues if house number is in address line 2 is causing an error like this.
Steps to reproduce
- Create an order with an invalid address (#3216580: Issues if house number is in address line 2)
- Generate barcodes using batch
Proposed resolution
Display the order number/id in the error message.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_swiss_post-error-context-3227082-2.patch | 6.45 KB | Berdir |
Comments
Comment #2
BerdirThis adds the shipment and order ID to the exception messages, also added a basic test to the exception handling.
Comment #3
BerdirCommitting this so I can build on the test changes.