Skip to content

Commit f0db499

Browse files
authored
fix error reporting (#461)
1 parent b4ebc5c commit f0db499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/exception.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function AppcException(message, details) {
3131
this.details = details ? (Array.isArray(details) ? details : [ details ]) : [];
3232
}
3333

34-
AppcException.prototype = new Error();
34+
AppcException.prototype = Object.create(Error.prototype);
3535

3636
/**
3737
* Logs any additional errors.

0 commit comments

Comments
 (0)