DB exception -> SCoreException
This commit is contained in:
parent
6410199a84
commit
f77c66848f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user