write internal errors to error log

This commit is contained in:
Shish 2021-11-06 16:46:05 +00:00
parent 6377ea19cc
commit 4c4b26f098

View File

@ -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>