[Koha-bugs] [Bug 33816] New: Holds API errors not easily machine-readable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 24 02:09:55 CEST 2023


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

            Bug ID: 33816
           Summary: Holds API errors not easily machine-readable
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: REST API
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: dcook at prosentient.com.au
                CC: tomascohen at gmail.com

At the moment, if you place a hold via the Holds API and there are too many
holds for the record, you get the following response:

{"error":"Hold cannot be placed. Reason: tooManyHoldsForThisRecord"}

That's a message that is meant for a human developer. It's not showable to a
human audience, and it's not easily parsed by a machine. 

It would be good to have a human readable message for troubleshooting, but the
core error code should just be "tooManyHoldsForThisRecord", as a machine can
take that string and work with it as a code.

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


More information about the Koha-bugs mailing list