feat: preserve safe request and exception diagnostics

This commit is contained in:
Thomas Durieux committed 2026-11-14 21:22:28 +00:00
1 parent 3fbf2cbad7
commit f6574069da
20 files changed
+3187 -65

No files matched your search

+1 -1
View File
@@ -1517,7 +1517,7 @@ export const errorsAdminController = function (state, http, location, interval)
e._detail = detail.detail && detail.detail !== e._repoId ? detail.detail : null;
// Walk into `cause` (and `err` for streamer-style entries) to
// surface the deepest stack.
let s = typeof detail.stack === "string" ? detail.stack : null;
let s = detail.errorStack || detail.causeStack ? [detail.errorType, detail.errorStack, detail.causeType ? "Caused by " + detail.causeType : null, detail.causeStack].filter(Boolean).join("\n") : (typeof detail.stack === "string" ? detail.stack : null);
var roots = [detail.cause, detail.err].filter(Boolean);
for (var ri = 0; !s && ri < roots.length; ri++) {
var c = roots[ri];