Skip to content

Commit 0310ee0

Browse files
author
김지오
committed
chore: rename variable
1 parent 53243cf commit 0310ee0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/integrations/extraerrordata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ function _extractErrorData(
116116
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
117117
if (captureErrorCause && error.cause !== undefined) {
118118
if (isError(error.cause)) {
119-
const causeName = error.cause.name || error.cause.constructor.name;
120-
extraErrorInfo.cause = { [causeName]: _extractErrorData(error.cause as ExtendedError, false, maxValueLength) };
119+
const errorName = error.cause.name || error.cause.constructor.name;
120+
extraErrorInfo.cause = { [errorName]: _extractErrorData(error.cause as ExtendedError, false, maxValueLength) };
121121
} else {
122122
extraErrorInfo.cause = error.cause;
123123
}

0 commit comments

Comments
 (0)