mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:03:40 +00:00
Testmode added
This commit is contained in:
parent
2138c4bb55
commit
89b47afb09
1 changed files with 4 additions and 0 deletions
|
@ -740,6 +740,10 @@ class Database
|
|||
$error = $this->error;
|
||||
$errorno = $this->errorno;
|
||||
|
||||
if ($this->testmode) {
|
||||
throw new Exception(DI::l10n()->t('Database error %d "%s" at "%s"', $errorno, $error, $this->replaceParameters($sql, $params)));
|
||||
}
|
||||
|
||||
$this->logger->error('DB Error', [
|
||||
'code' => $this->errorno,
|
||||
'error' => $this->error,
|
||||
|
|
Loading…
Reference in a new issue