Skip to content
Snippets Groups Projects
Commit 1269f527 authored by Marc Egger's avatar Marc Egger
Browse files

Database.php: fix CodeException

parent 2d65750b
No related branches found
No related tags found
No related merge requests found
Pipeline #2091 passed
......@@ -972,7 +972,7 @@ class Database {
if (false === $executed) {
$errorMsg[ERROR_MESSAGE_TO_USER] = 'SQL Error.';
$errorMsg[ERROR_MESSAGE_TO_DEVELOPER] = "Error playing multi query: " . $sqlStatements;
throw new \CodeException($errorMsg, ERROR_PLAY_SQL_MULTIQUERY);
throw new \CodeException(json_encode($errorMsg), ERROR_PLAY_SQL_MULTIQUERY);
}
// discard all results: this is important - if missed, following calls on $mysqli will fail.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment