mongoose 6.13.3 → 6.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,10 +21,10 @@ module.exports = function wrapThunk(fn) {
|
|
|
21
21
|
str = str.slice(0, 60) + '...';
|
|
22
22
|
}
|
|
23
23
|
const err = new MongooseError('Query was already executed: ' + str);
|
|
24
|
-
err.originalStack = this._executionStack
|
|
24
|
+
err.originalStack = this._executionStack;
|
|
25
25
|
return cb(err);
|
|
26
26
|
}
|
|
27
|
-
this._executionStack = new Error();
|
|
27
|
+
this._executionStack = new Error().stack;
|
|
28
28
|
|
|
29
29
|
fn.call(this, cb);
|
|
30
30
|
};
|