[Koha-bugs] [Bug 27806] Exceptions thrown during a call to ->render are not caught and passed to ->unhandled_exception

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 26 14:29:13 CET 2021


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

--- Comment #2 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 117377
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117377&action=edit
Bug 27806: (follow-up) Attempt to catch the exception

Help: I'm struggling to catch the point at which the exception should be
thrown to convert it to a 400 error response in the API. '->search' does
not actually trigger the DB hit until we reference some data from it..
so we can't use that.. so I tried '->count', but of course.. that drops
'order_by' which is the failure in this case and so we pass through.

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