Commit ff914280 authored by Dries's avatar Dries

- Synced/unified the error reporting from database.mysql.inc and database.pear.inc.
  This makes debugging the PostgreSQL (and MSSQL) support somewhat easier.
parent 49ebc543
......@@ -71,7 +71,7 @@ function _db_query($query, $debug = 0) {
}
if (DB::isError($result)) {
watchdog("error", "database: ". $result->getMessage() ."\nquery: ". htmlspecialchars($query));
trigger_error($result->getMessage() ."\nquery: ". htmlspecialchars($query), E_USER_ERROR);
}
else {
return $result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment