1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Fix multi/exec error reply callback logic.

Thanks to Stella Laurenzo.
This commit is contained in:
Matt Ranney
2011-02-05 19:54:40 -10:00
parent 2d7869261a
commit efadbc8582
2 changed files with 2 additions and 1 deletions

View File

@@ -557,6 +557,7 @@ Multi.prototype.exec = function (callback) {
if (err) {
if (callback) {
callback(new Error(err));
return;
} else {
throw new Error(err);
}