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

--- Comment #68 from Paul Derscheid <[email protected]> ---
Created attachment 202179
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202179&action=edit
Bug 41129: (follow-up) Preserve error details in the fetch HttpClient and make
its error dialog optional

The staff HttpClient flattens failed responses into a thrown string:
the response status and Koha error_code are lost, and the final
'throw Error(error)' stringifies the caught Error so consumers receive
'Error: <message>'. It also unconditionally appends a page-level
warning for every failure, so callers that present errors themselves
report each failure twice.

- attach the response status and the body's error_code to the thrown
  error and rethrow the object itself instead of stringifying it
- accept a per-call config with suppressDefaultErrorDialog for callers
  that surface errors themselves; default behaviour is unchanged

-- 
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