mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-31 23:39:56 +02:00
feat: introduce template engine (#2899)
This commit is contained in:
parent
951092eef3
commit
abfc6b4633
9 changed files with 92 additions and 20 deletions
12
index.php
12
index.php
|
@ -26,13 +26,7 @@ try {
|
|||
}
|
||||
} catch (\Throwable $e) {
|
||||
error_log($e);
|
||||
|
||||
$code = $e->getCode();
|
||||
if ($code !== -1) {
|
||||
header('Content-Type: text/plain', true, $code);
|
||||
}
|
||||
|
||||
$message = sprintf("Uncaught Exception %s: '%s'\n", get_class($e), $e->getMessage());
|
||||
|
||||
print $message;
|
||||
print render('error.html.php', [
|
||||
'message' => sprintf("Uncaught Exception %s: '%s'\n", get_class($e), $e->getMessage()),
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue