Skip to content

Commit 86fd430

Browse files
fix: Add missing err.name to the symbolicated stack trace
1 parent 31cf783 commit 86fd430

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/impl.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ const symbolicatedConsole =
118118
)
119119
.join('\n');
120120

121-
arg.stack = arg.message ? `${arg.message}\n${newStack}` : newStack;
121+
arg.stack = arg.message
122+
? `${arg.name}: ${arg.message}\n${newStack}`
123+
: `${arg.name}\n${newStack}`;
122124
} catch (Oo) {
123125
logError('Error during symbolication:', Oo);
124126
}

0 commit comments

Comments
 (0)