Skip to content

Commit d140cff

Browse files
Improved docs + JS
1 parent 256710a commit d140cff

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ function PouchPluginError(opts) {
2121
this.name = opts.name;
2222
this.message = opts.message;
2323
this.error = true;
24+
this.stack = (new Error()).stack;
2425
}
2526

26-
PouchPluginError.prototype = new Error();
27-
2827
PouchPluginError.prototype.toString = function () {
2928
return JSON.stringify({
3029
status: this.status,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pouchdb-plugin-error",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"main": "index.js",
55
"description": "A PouchDB-like error object, for use by plug-ins.",
66
"repository": {

0 commit comments

Comments
 (0)