Fix: errorPage undefined — заменён на inline HTML. Версия 0.1.17
This commit is contained in:
@@ -88,7 +88,7 @@ async function start() {
|
||||
if (fatalError) {
|
||||
console.error(fatalError);
|
||||
app.use((req, res) => {
|
||||
res.status(503).type('html').send(errorPage(fatalError));
|
||||
res.status(503).type('html').send('<html><head><meta charset="utf-8"><title>Авария</title><style>body{font-family:sans-serif;padding:40px;text-align:center}h1{color:#c00}</style></head><body><h1>⚙️ Ошибка конфигурации</h1><p>' + fatalError + '</p></body></html>');
|
||||
});
|
||||
return app;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user