1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00

fix(pdo): throw on general to parent

This commit is contained in:
Torsten Dittmann 2021-07-12 17:27:26 +02:00
parent df24011d8b
commit 76af58c646

View file

@ -304,6 +304,10 @@ App::error(function ($error, $utopia, $request, $response, $layout, $project) {
/** @var Utopia\View $layout */
/** @var Appwrite\Database\Document $project */
if (get_class($error) == 'PDOException') {
throw $error;
}
$route = $utopia->match($request);
$template = ($route) ? $route->getLabel('error', null) : null;