mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-09 21:44:37 +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
|
@ -317,7 +317,10 @@ final class Configuration
|
|||
*/
|
||||
private static function reportError($message)
|
||||
{
|
||||
header('Content-Type: text/plain', true, 500);
|
||||
die('Configuration error' . PHP_EOL . $message);
|
||||
http_response_code(500);
|
||||
print render('error.html.php', [
|
||||
'message' => "Configuration error: $message",
|
||||
]);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue