diff --git a/src/UnexpectedError.tsx b/src/UnexpectedError.tsx index aa7f468..906d99d 100644 --- a/src/UnexpectedError.tsx +++ b/src/UnexpectedError.tsx @@ -18,7 +18,16 @@ const UnexpectedError: Component<{ error?: any }> = (props) => { .join("\n"); return `${err.name}: ${err.message}\n${strackMsg}`; } catch (reason) { - return `\n${reason}`; + return `\n${reason}\n${JSON.stringify( + { + name: err.name, + stack: err.stack, + cause: err.cause, + message: err.message, + }, + undefined, + 2, + )}`; } }