Skip to content

Commit 242a122

Browse files
committed
thusfar
1 parent 1881153 commit 242a122

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Nether/Database/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public function
283283
$Statement = $this->Driver->Prepare($SQL);
284284

285285
if(!$Statement)
286-
throw new Error\QueryPrepareFailure;
286+
throw new Error\QueryPrepareFailure($SQL);
287287

288288
// execute the query statement.
289289

src/Nether/Database/Error/QueryPrepareFailure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class QueryPrepareFailure
99
extends Exception {
1010

1111
public function
12-
__construct() {
13-
parent::__construct("The query failed to be prepared by PDO.");
12+
__construct(?string $SQL=NULL) {
13+
parent::__construct("The query failed to be prepared by PDO ({$SQL}).");
1414
return;
1515
}
1616

0 commit comments

Comments
 (0)