1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-28 20:30:25 +02:00

feat: introduce template engine (#2899)

This commit is contained in:
Dag
2022-07-08 14:17:25 +02:00
committed by GitHub
parent 951092eef3
commit abfc6b4633
9 changed files with 92 additions and 20 deletions

View File

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