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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}
}