mirror of
https://github.com/dg/dibi.git
synced 2025-08-12 09:04:24 +02:00
- added parameter $name in dibi::getConnection()
- bug fixed error handling in SQlite driver
This commit is contained in:
@@ -36,6 +36,7 @@ class DibiException extends Exception
|
||||
{
|
||||
$this->dbError = $dbError;
|
||||
$this->sql = $sql;
|
||||
|
||||
parent::__construct($message);
|
||||
}
|
||||
|
||||
@@ -57,7 +58,7 @@ class DibiException extends Exception
|
||||
$s = parent::__toString();
|
||||
|
||||
if ($this->dbError) {
|
||||
$s .= "\nERROR: ";
|
||||
$s .= "\n\nDatabase error: ";
|
||||
if (isset($this->dbError['code']))
|
||||
$s .= "[" . $this->dbError['code'] . "] ";
|
||||
|
||||
|
Reference in New Issue
Block a user