Skip to content

Commit c6cba2a

Browse files
committed
removed function type from error cause
1 parent 49fe125 commit c6cba2a

File tree

5 files changed

+3
-12
lines changed

5 files changed

+3
-12
lines changed

dist/elmahio.js

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/elmahio.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/elmahio.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/elmahio.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/elmahio.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,6 @@
10351035
if (typeof error.cause === "symbol") {
10361036
obj.ExceptionSpecific = [{ key: "cause", value: error.cause.toString() }];
10371037
}
1038-
if (typeof error.cause === "function") {
1039-
obj.ExceptionSpecific = [{ key: "cause", value: Object.prototype.toString.call(error.cause) }];
1040-
}
10411038
if (typeof error.cause === "object") {
10421039
if (!(Object.keys(obj).length === 0 && obj.constructor === Object)) {
10431040
let objEntries = [];

0 commit comments

Comments
 (0)