We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4ebc5c commit f0db499Copy full SHA for f0db499
lib/exception.js
@@ -31,7 +31,7 @@ function AppcException(message, details) {
31
this.details = details ? (Array.isArray(details) ? details : [ details ]) : [];
32
}
33
34
-AppcException.prototype = new Error();
+AppcException.prototype = Object.create(Error.prototype);
35
36
/**
37
* Logs any additional errors.
0 commit comments