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

This commit is contained in:
2026-06-22 19:31:11 +04:00
parent eed88ecadf
commit 85038c3bd3
3 changed files with 3 additions and 3 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('Внутренняя ошибка сервера');
});
// ── Старт сервера ─────────────────────────────────────────────────────────────