Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 5, 2022
1 parent d9619a5 commit 02e19ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/error/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ const createSimpleErrorType = function (error, cause, message) {
: new Error(message)
}

// Only show the inner error's stack trace since the outer one contains mostly
// the same lines
const fixStack = function (mergedError, cause) {
setErrorProperty(mergedError, 'stack', cause.stack)
}
Expand Down

0 comments on commit 02e19ac

Please sign in to comment.