From fcdcc656b45e24c7c031dadf05422fa9cbafca48 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 21 Jun 2011 13:14:54 -0700 Subject: [PATCH] Add exception for SQLite databases that can't be found. --- system/db/connector.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/db/connector.php b/system/db/connector.php index 602ec96e..39998060 100644 --- a/system/db/connector.php +++ b/system/db/connector.php @@ -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.