Skip to content

Commit

Permalink
fix error reporting (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga authored Apr 11, 2022
1 parent b4ebc5c commit f0db499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function AppcException(message, details) {
this.details = details ? (Array.isArray(details) ? details : [ details ]) : [];
}

AppcException.prototype = new Error();
AppcException.prototype = Object.create(Error.prototype);

/**
* Logs any additional errors.
Expand Down

0 comments on commit f0db499

Please sign in to comment.