fix(pdo): throw on general to parent
This commit is contained in:
parent
df24011d8b
commit
76af58c646
1 changed files with 4 additions and 0 deletions
|
@ -304,6 +304,10 @@ App::error(function ($error, $utopia, $request, $response, $layout, $project) {
|
||||||
/** @var Utopia\View $layout */
|
/** @var Utopia\View $layout */
|
||||||
/** @var Appwrite\Database\Document $project */
|
/** @var Appwrite\Database\Document $project */
|
||||||
|
|
||||||
|
if (get_class($error) == 'PDOException') {
|
||||||
|
throw $error;
|
||||||
|
}
|
||||||
|
|
||||||
$route = $utopia->match($request);
|
$route = $utopia->match($request);
|
||||||
$template = ($route) ? $route->getLabel('error', null) : null;
|
$template = ($route) ? $route->getLabel('error', null) : null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue