Skip to content

Commit

Permalink
better representation of a function in error cause
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsharE committed Nov 11, 2023
1 parent 1696250 commit f3c9a11
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/elmahio.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/elmahio.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elmahio.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elmahio.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/elmahio.js
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@
obj.ExceptionSpecific = [{ key: "cause", value: error.cause }];
}
if (typeof error.cause === "function") {
obj.ExceptionSpecific = [{ key: "cause", value: error.cause.toString() }];
obj.ExceptionSpecific = [{ key: "cause", value: Object.prototype.toString.call(error.cause) }];
}
if (typeof error.cause === "object") {
if (!(Object.keys(obj).length === 0 && obj.constructor === Object)) {
Expand Down

0 comments on commit f3c9a11

Please sign in to comment.