1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

bugfix, enhanced error reporting, better examples

This commit is contained in:
David Grudl
2007-05-11 22:25:32 +00:00
parent d03f60c43c
commit f766827219
19 changed files with 123 additions and 230 deletions

View File

@@ -44,7 +44,7 @@ class DibiSqliteDriver extends DibiDriver
throw new DibiException("PHP extension 'sqlite' is not loaded");
if (empty($config['database']))
throw new DibiException("Database must be specified");
throw new DibiException("Database must be specified (driver sqlite)");
if (!isset($config['mode']))
$config['mode'] = 0666;
@@ -65,7 +65,7 @@ class DibiSqliteDriver extends DibiDriver
$conn = @sqlite_popen($config['database'], $config['mode'], $errorMsg);
if (!$conn)
throw new DibiException("Connecting error", array(
throw new DibiException("Connecting error (driver sqlite)", array(
'message' => $errorMsg,
));