diff --git a/Koha/REST/V1/Biblios.pm b/Koha/REST/V1/Biblios.pm index 4e803b1988..efe7c5dfe8 100644 --- a/Koha/REST/V1/Biblios.pm +++ b/Koha/REST/V1/Biblios.pm @@ -230,10 +230,7 @@ sub get_public { ); } catch { - return $c->render( - status => 500, - openapi => { error => "Something went wrong, check the logs ($_)" } - ); + $c->unhandled_exception($_); }; }