write internal errors to error log
This commit is contained in:
parent
6377ea19cc
commit
4c4b26f098
1 changed files with 1 additions and 0 deletions
|
@ -616,6 +616,7 @@ function _fatal_error(Exception $e): void
|
|||
print("Version: $version (on $phpver)\n");
|
||||
} else {
|
||||
$q = $query ? "" : "<p><b>Query:</b> " . html_escape($query);
|
||||
error_log("Shimmie Error: $message // $query // {$e->getTraceAsString()}");
|
||||
header("HTTP/1.0 500 Internal Error");
|
||||
echo '
|
||||
<!doctype html>
|
||||
|
|
Reference in a new issue