Skip to content

Commit 5838f15

Browse files
committed
test: added more controller tests for the public API (#3830)
1 parent 0383aab commit 5838f15

File tree

9 files changed

+99
-268
lines changed

9 files changed

+99
-268
lines changed

phpmyfaq/src/phpMyFAQ/Database/PdoMysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function query(string $query, int $offset = 0, int $rowcount = 0): mixed
271271
try {
272272
$result = $this->pdo->query($query);
273273
} catch (PDOException $pdoException) {
274-
throw new Exception($pdoException->getMessage());
274+
throw new Exception($pdoException->getMessage() . ' in query: ' . $query);
275275
}
276276

277277
if (false === $result) {

0 commit comments

Comments
 (0)