Add exception for SQLite databases that can't be found.
This commit is contained in:
@@ -41,6 +41,10 @@ class Connector {
|
|||||||
{
|
{
|
||||||
return new \PDO('sqlite:'.$config->database, null, null, static::$options);
|
return new \PDO('sqlite:'.$config->database, null, null, static::$options);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new \Exception("SQLite database [".$config->database."] could not be found.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// -----------------------------------------------------
|
// -----------------------------------------------------
|
||||||
// Connect to MySQL or Postgres.
|
// Connect to MySQL or Postgres.
|
||||||
|
|||||||
Reference in New Issue
Block a user