summaryrefslogtreecommitdiffstats
path: root/Db.class.php
diff options
context:
space:
mode:
authorjayc89 <jamie-cressey@live.co.uk>2014-10-07 15:34:08 +0100
committerjayc89 <jamie-cressey@live.co.uk>2014-10-07 15:34:08 +0100
commit418f88a740300ce1bae5972bdca1cbf46c8cb464 (patch)
tree9f8801276d1e521ba0b989083ecffb421c06e5d9 /Db.class.php
parent0d11dc62a20555b22416c6cf7dca768c74d7deea (diff)
downloadphp-mysql-pdo-database-class-418f88a740300ce1bae5972bdca1cbf46c8cb464.zip
php-mysql-pdo-database-class-418f88a740300ce1bae5972bdca1cbf46c8cb464.tar.gz
php-mysql-pdo-database-class-418f88a740300ce1bae5972bdca1cbf46c8cb464.tar.bz2
Update Db.class.php
Allow our app to handle exceptions
Diffstat (limited to 'Db.class.php')
-rw-r--r--Db.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Db.class.php b/Db.class.php
index b1fb58e..af51ed4 100644
--- a/Db.class.php
+++ b/Db.class.php
@@ -123,7 +123,7 @@ class DB
{
# Write into log and display Exception
echo $this->ExceptionLog($e->getMessage(), $query );
- die();
+ throw new Exception($e->getMessage());
}
# Reset the parameters