Commit fcdcc656 authored by Taylor Otwell's avatar Taylor Otwell

Add exception for SQLite databases that can't be found.

parent dbc418c0
......@@ -41,6 +41,10 @@ class Connector {
{
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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment