We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fbe9f0 commit 68377ffCopy full SHA for 68377ff
lib/helpers/query/wrapThunk.js
@@ -21,10 +21,10 @@ module.exports = function wrapThunk(fn) {
21
str = str.slice(0, 60) + '...';
22
}
23
const err = new MongooseError('Query was already executed: ' + str);
24
- err.originalStack = this._executionStack.stack;
+ err.originalStack = this._executionStack;
25
return cb(err);
26
27
- this._executionStack = new Error();
+ this._executionStack = new Error().stack;
28
29
fn.call(this, cb);
30
};
0 commit comments