https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44114 --- Comment #1 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 211622 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211622&action=edit Bug 44114: Use thrown error details when adding to a bundle The "Add to bundle" form asked the HttpClient for the raw Response (return_response) only so that it could inspect the status and error_code of a failed request itself. The client now attaches both to the thrown error, so suppress the default error dialog and branch on error.status/error.code instead. This removes the last caller relying on return_response to skip the client's error handling. Test plan: 1. Create a bundle (an item with a 'Collection' material type) and open its record's detail page, Holdings tab, "Manage bundle". 2. Add an item by barcode: "Success: Added '...'" is displayed. 3. Add the same barcode again: "Warning: Item '...' already attached". 4. Add an unknown barcode: "Failure: Item '...' not found". 5. Add a checked-out item: the "Check in and add to bundle" button is displayed and works. 6. Add an item on hold: the "Ignore holds and add to bundle" button is displayed and works. 7. Confirm no extra warning appears at the top of the page for these failures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.