Skip to content

Commit f3c9a11

Browse files
committed
better representation of a function in error cause
1 parent 1696250 commit f3c9a11

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/elmahio.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.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@
10301030
obj.ExceptionSpecific = [{ key: "cause", value: error.cause }];
10311031
}
10321032
if (typeof error.cause === "function") {
1033-
obj.ExceptionSpecific = [{ key: "cause", value: error.cause.toString() }];
1033+
obj.ExceptionSpecific = [{ key: "cause", value: Object.prototype.toString.call(error.cause) }];
10341034
}
10351035
if (typeof error.cause === "object") {
10361036
if (!(Object.keys(obj).length === 0 && obj.constructor === Object)) {

0 commit comments

Comments
 (0)