DB exception -> SCoreException

This commit is contained in:
Shish 2012-02-16 16:58:39 +00:00
parent 6410199a84
commit f77c66848f

View File

@ -349,9 +349,7 @@ class Database {
return $stmt; return $stmt;
} }
catch(PDOException $pdoe) { catch(PDOException $pdoe) {
print 'Message: '.$pdoe->getMessage(); throw new SCoreException($pdoe->getMessage()."<p>Query: ".$query);
print '<p>Error: '.$query;
exit;
} }
} }