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;
}
catch(PDOException $pdoe) {
print 'Message: '.$pdoe->getMessage();
print '<p>Error: '.$query;
exit;
throw new SCoreException($pdoe->getMessage()."<p>Query: ".$query);
}
}