diff --git a/src/index.ts b/src/index.ts index c9a85cd..3588536 100644 --- a/src/index.ts +++ b/src/index.ts @@ -38,7 +38,7 @@ try { }); info(`Stack: ${JSON.stringify(stack, null, 2)}`); error(e.message, { - title: e.name, + title: e.message, ...(stack ? stack[stack.length - 1] : {}), }); }