blueslip: Include message for abnormal traces.

`ResizeObserver loop completed with undelivered notifications` errors
have originalEvent.error=null; in that case, it's worth including the
`message` in what we display.

I think we probably want `message` in every case where this code path
is relevant, so I just append it unconditionally.
This commit is contained in:
Tim Abbott 2024-11-15 16:30:05 -08:00
parent b78ca79ccf
commit f7fe96f814
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ export async function display_stacktrace(ex: unknown, message?: string): Promise
"constructor" in prototype
? `thrown ${prototype.constructor.name}`
: "thrown",
message: ex === undefined ? message : String(ex),
message: ex === undefined ? message : `${String(ex)}: ${message}`,
stackframes: [],
});
break;