We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 256710a commit d140cffCopy full SHA for d140cff
index.js
@@ -21,10 +21,9 @@ function PouchPluginError(opts) {
21
this.name = opts.name;
22
this.message = opts.message;
23
this.error = true;
24
+ this.stack = (new Error()).stack;
25
}
26
-PouchPluginError.prototype = new Error();
27
-
28
PouchPluginError.prototype.toString = function () {
29
return JSON.stringify({
30
status: this.status,
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "pouchdb-plugin-error",
3
- "version": "0.1.0",
+ "version": "0.2.0",
4
"main": "index.js",
5
"description": "A PouchDB-like error object, for use by plug-ins.",
6
"repository": {
0 commit comments