Skip to content

Commit

Permalink
Fix franciscofsales#39 - use stacktrace from winston
Browse files Browse the repository at this point in the history
  • Loading branch information
xow committed Jun 28, 2022
1 parent 6f2f29c commit c44afa4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ class Sentry extends TransportStream {
err = info;
} else {
err = new Error(message);
if (info.stacktrace) {
err.stack = info.stacktrace;
}
if (info.stack) {
err.stack = info.stack;
}
Expand Down

0 comments on commit c44afa4

Please sign in to comment.