We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1881153 commit 242a122Copy full SHA for 242a122
src/Nether/Database/Connection.php
@@ -283,7 +283,7 @@ public function
283
$Statement = $this->Driver->Prepare($SQL);
284
285
if(!$Statement)
286
- throw new Error\QueryPrepareFailure;
+ throw new Error\QueryPrepareFailure($SQL);
287
288
// execute the query statement.
289
src/Nether/Database/Error/QueryPrepareFailure.php
@@ -9,8 +9,8 @@ class QueryPrepareFailure
9
extends Exception {
10
11
public function
12
- __construct() {
13
- parent::__construct("The query failed to be prepared by PDO.");
+ __construct(?string $SQL=NULL) {
+ parent::__construct("The query failed to be prepared by PDO ({$SQL}).");
14
return;
15
}
16
0 commit comments