fix(pdo): throw on general to parent
This commit is contained in:
parent
df24011d8b
commit
76af58c646
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue