[Koha-bugs] [Bug 34448] ERM should be able to display error messages coming from the API

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 4 14:03:46 CEST 2023


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

--- Comment #8 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Before:
Something went wrong: Error: Error: Internal Server Error (500)

After:
Something went wrong: Error: Error: Something went wrong, check Koha logs for
details.

Before:
Something went wrong: Error: Not Found (404)
After:
Something went wrong: Error: Agreement not found

Before:
Something went wrong: Error: Bad Request (400)
After:
Something went wrong: Error: Expected integer - got string.

Note for myself:
"""The ok read-only property of the Response interface contains a Boolean
stating whether the response was successful (status in the range 200-299) or
not."""

Only wondering if we should not keep the HTTP status code.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list