You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Do not wrap errors into other errors. The trace is going to be manipulated that way.
This commit is contained in:
4
index.js
4
index.js
@@ -1055,7 +1055,7 @@ Multi.prototype.exec = function (callback) {
|
||||
if (typeof cur[cur.length - 1] === "function") {
|
||||
cur[cur.length - 1](err);
|
||||
} else {
|
||||
errors.push(new Error(err));
|
||||
errors.push(err);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1065,7 +1065,7 @@ Multi.prototype.exec = function (callback) {
|
||||
return this._client.send_command("exec", [], function (err, replies) {
|
||||
if (err) {
|
||||
if (callback) {
|
||||
errors.push(new Error(err));
|
||||
errors.push(err);
|
||||
callback(errors);
|
||||
return;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user