From f77c66848fbe766338c01688940b0040a228cd16 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 16 Feb 2012 16:58:39 +0000 Subject: [PATCH] DB exception -> SCoreException --- core/database.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/database.class.php b/core/database.class.php index 53abd16e..7ff1617b 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -349,9 +349,7 @@ class Database { return $stmt; } catch(PDOException $pdoe) { - print 'Message: '.$pdoe->getMessage(); - print '

Error: '.$query; - exit; + throw new SCoreException($pdoe->getMessage()."

Query: ".$query); } }