Skip to content
Snippets Groups Projects
Commit ff914280 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- 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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment