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

--- Comment #3 from Marcel de Rooy <[email protected]> ---
Testing this small piece of code:

diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm
index 576e4f8f2c..fad1359fc3 100644
--- a/Koha/REST/V1/Patrons.pm
+++ b/Koha/REST/V1/Patrons.pm
@@ -44,6 +44,7 @@ Controller function that handles listing Koha::Patron objects
 sub list {
     my $c = shift->openapi->valid_input or return;

+$c->app->log->debug('L47');
     return try {

         my $query = {};

Now hit /api/v1/patrons and see what happens:
The application raised the following error:

  Can't call method "error" on an undefined value at
/usr/share/perl5/Mojolicious/Plugin/DefaultHelpers.pm line 94.

and the StackTrace middleware couldn't catch its stack trace, possibly because
your application overrides $SIG{__DIE__} by itself, preventing the middleware
from working correctly. Remove the offending code or module that does it: known
examples are CGI::Carp and Carp::Always.

Easy peasy lemon squeezy

-- 
You are receiving this mail because:
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/

Reply via email to