v0.5.175: safeReturn fix, stack trace не утекает

This commit is contained in:
2026-06-22 19:31:11 +04:00
parent df697cd703
commit 68c3edd8d8
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ async function start() {
? (err.stack || err.message || String(err))
: JSON.stringify(err);
console.error('Unhandled error:', ctx, detail);
res.status(500).send('Ошибка [' + ctx.url + '] user=' + ctx.user + ' clientId=' + ctx.clientId + ' — ' + detail.slice(0, 500));
res.status(500).send('Внутренняя ошибка сервера');
});
// ── Старт сервера ─────────────────────────────────────────────────────────────