Fix: ошибки показывают реальную причину, не скрытую

This commit is contained in:
2026-07-08 21:29:28 +04:00
parent 1b902c5540
commit 036441a9f1
+1 -1
View File
@@ -123,7 +123,7 @@ async function start() {
? (err.stack || err.message || String(err)) ? (err.stack || err.message || String(err))
: JSON.stringify(err); : JSON.stringify(err);
console.error('Unhandled error:', ctx, detail); console.error('Unhandled error:', ctx, detail);
res.status(500).send('Внутренняя ошибка сервера'); res.status(500).send('<h2>Ошибка</h2><pre>' + detail + '</pre>');
}); });
// ── Старт сервера ───────────────────────────────────────────────────────────── // ── Старт сервера ─────────────────────────────────────────────────────────────