From efadbc8582f23be351a857f0a316c3712f1ae378 Mon Sep 17 00:00:00 2001 From: Matt Ranney Date: Sat, 5 Feb 2011 19:54:40 -1000 Subject: [PATCH] Fix multi/exec error reply callback logic. Thanks to Stella Laurenzo. --- index.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 04d9323c2c..563d63eb1b 100644 --- a/index.js +++ b/index.js @@ -557,6 +557,7 @@ Multi.prototype.exec = function (callback) { if (err) { if (callback) { callback(new Error(err)); + return; } else { throw new Error(err); } diff --git a/package.json b/package.json index 0c8a143af6..a5a593e676 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name" : "redis", - "version" : "0.5.2", + "version" : "0.5.3", "description" : "Redis client library", "author": "Matt Ranney ", "contributors": [