Fix: errorPage undefined — заменён на inline HTML. Версия 0.1.17

This commit is contained in:
2026-07-08 22:22:02 +04:00
parent 158de70e4e
commit 9dec159e3d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
}