mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Disable exception chaining for DB errors
This commit is contained in:
parent
e94146b490
commit
e03ee87345
1 changed files with 2 additions and 2 deletions
|
|
@ -123,7 +123,7 @@ class DB
|
|||
}
|
||||
catch (\PDOException $e)
|
||||
{
|
||||
throw new Exceptions\DBError($e->getMessage(), 0, $e);
|
||||
throw new Exceptions\DBError($e->getMessage());
|
||||
}
|
||||
|
||||
// Get the DB version.
|
||||
|
|
@ -541,7 +541,7 @@ class DB
|
|||
}
|
||||
catch (\PDOException $e)
|
||||
{
|
||||
throw new Exceptions\DBError($e->getMessage(), 0, $e);
|
||||
throw new Exceptions\DBError($e->getMessage());
|
||||
}
|
||||
|
||||
if ($result_type === 'auto' && $last_index === 0 && count($result) <= 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue