@@ -, +, @@ logged $ ktd --shell k$ koha-plack --restart kohadev; tail -f /var/log/koha/kohadev/*.log the user's cardnumber instead of the userid. On a default KTD launch, the generated user's cardnumber is '42'. GET /patrons --- Koha/REST/Plugin/Exceptions.pm | 7 +++---- Koha/REST/V1/Auth.pm | 10 ++-------- 2 files changed, 5 insertions(+), 12 deletions(-) --- a/Koha/REST/Plugin/Exceptions.pm +++ a/Koha/REST/Plugin/Exceptions.pm @@ -71,10 +71,9 @@ sub register { $c->app->log->error( "$message" ); $c->render( - status => 500, - openapi => { - error => - "Something went wrong, check Koha logs for details.", + status => 500, + json => { + error => "Something went wrong, check Koha logs for details.", error_code => 'internal_server_error', } ); --- a/Koha/REST/V1/Auth.pm +++ a/Koha/REST/V1/Auth.pm @@ -95,10 +95,7 @@ sub under { } catch { unless (blessed($_)) { - return $c->render( - status => 500, - json => { error => 'Something went wrong, check the logs.' } - ); + $c->unhandled_exception($_); } if ($_->isa('Koha::Exceptions::UnderMaintenance')) { return $c->render(status => 503, json => { error => $_->error }); @@ -128,10 +125,7 @@ sub under { return $c->render(status => 500, json => { error => $_->error }); } else { - return $c->render( - status => 500, - json => { error => 'Something went wrong, check the logs.' } - ); + $c->unhandled_exception($_); } }; --