https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42790

--- Comment #26 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 205490
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205490&action=edit
Bug 42790: (QA follow-up) Log and surface errors when extending a booking's
checkout

The renewal request's error handler silently swallowed every
network/transport failure (.catch(() => null)), making a genuine
connection error indistinguishable from a legitimate 400 response.
The success path's response.json() was also unguarded, bypassing the
HttpClient hardening added elsewhere in this series entirely; a
malformed 200 body would throw with nothing to catch it.

Log the raw error in both cases, and on the success path fall back to
just reloading the bookings table (the extension already succeeded
server-side) rather than throwing when the response body can't be
parsed.

Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to