diff --git a/app/controllers/general.php b/app/controllers/general.php index c08c244b31..a65e07c81c 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -321,6 +321,7 @@ App::error(function ($error, $utopia, $request, $response, $layout, $project, $l $version = App::getEnv('_APP_VERSION', 'UNKNOWN'); $route = $utopia->match($request); + /** Delegate PDO exceptions to the global handler so the database connection can be returned to the pool */ if ($error instanceof PDOException) { throw $error; }