1
0
Fork 0
mirror of synced 2024-09-29 17:01:37 +13:00

feat: added comment about rethrowing PDO exception

This commit is contained in:
Christy Jacob 2022-03-19 02:58:54 +04:00
parent 137ec1631b
commit 0feb4a1008

View file

@ -321,7 +321,7 @@ App::error(function ($error, $utopia, $request, $response, $layout, $project, $l
$version = App::getEnv('_APP_VERSION', 'UNKNOWN');
$route = $utopia->match($request);
/** Rethrow PDO exceptions so the database connection can be returned to the pool correctly */
/** Delegate PDO exceptions to the global handler so the database connection can be returned to the pool */
if ($error instanceof PDOException) {
throw $error;
}