pull/298/head
David Goodwin 5 years ago
parent 28bef9e136
commit f36ba9b4c2

@ -1728,7 +1728,7 @@ function db_query($sql, array $values = array(), $ignore_errors = false) {
} catch (PDOException $e) {
$error_text = "Invalid query: " . $e->getMessage() . " caused by " . $sql ;
error_log($error_text);
if(defined('PHPUNIT_TEST')) {
if (defined('PHPUNIT_TEST')) {
throw new Exception("SQL query failed: {{{$sql}}} with " . json_encode($values) . ". Error message: " . $e->getMessage());
}
if (!$ignore_errors) {

Loading…
Cancel
Save