fix(ses): Include error in trapped error log
Errors caught by the `errorTrapping` feature were being logged with
only their stack traces. The error message was omitted.
Now the log for trapped errors includes the error message along with
the stack trace.
MODIFY
packages/ses/src/error/tame-console.js
packages/ses/src/error/tame-console.js
@@ -77,9 +77,7 @@ export const tameConsole = (
// eslint-disable-next-line @endo/no-polymorphic-call
event.preventDefault();
// eslint-disable-next-line @endo/no-polymorphic-call
- const stackString = loggedErrorHandler.getStackString(event.error);
- // eslint-disable-next-line @endo/no-polymorphic-call
- causalConsole.error(stackString);
+ causalConsole.error(event.error);
if (errorTrapping === 'exit' || errorTrapping === 'abort') {
globalThis.window.location.href = `about:blank`;
}

fix(ses): Include error in trapped error log (#936)

Errors caught by the `errorTrapping` feature were being logged with
only their stack traces. The error message was omitted.

Now the log for trapped errors includes the error message along with
the stack trace.