8000 Update ssql.php · ratajs/SuperSQL@669eb16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 669eb16

Browse files
authored
Update ssql.php
Errors shall now adhere to styles defined in php.ini.
1 parent 3306433 commit 669eb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __toString() {
3535
trigger_error("<strong>SuperSQL error:</strong> " . $this->message . " in <strong>" . $this->file . "</strong> on line <strong>" . $this->line . "</strong>");
3636
ob_clean();
3737
if(ini_get("display_errors"))
38-
die("<br /><strong>SuperSQL error:</strong> " . $this->message . " in <strong>" . $this->file . "</strong> on line <strong>" . $this->line . "</strong>");
38+
die((empty(ini_get("error_prepend_string")) ? "" : ini_get("error_prepend_string")) . "<br /><strong>SuperSQL error:</strong> " . $this->message . " in <strong>" . $this->file . "</strong> on line <strong>" . $this->line . "</strong><br />" . (empty(ini_get("error_append_string")) ? "" : ini_get("error_append_string")));
3939
else
4040
exit;
4141
return "<strong>SuperSQL error</strong> " . $this->message;

0 commit comments

Comments
 (0)
0