mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Merge pull request #2967 from appwrite/add-comment
feat: added comment about rethrowing PDO exception
This commit is contained in:
commit
22f147279f
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue