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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/