Permalink
Browse files

Fix multi/exec error reply callback logic.

Thanks to Stella Laurenzo.
  • Loading branch information...
1 parent 2d78692 commit efadbc8582f23be351a857f0a316c3712f1ae378 @mranney mranney committed Feb 6, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 index.js
  2. +1 −1 package.json
View
1 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);
}
View
2 package.json
@@ -1,5 +1,5 @@
{ "name" : "redis",
- "version" : "0.5.2",
+ "version" : "0.5.3",
"description" : "Redis client library",
"author": "Matt Ranney <mjr@ranney.com>",
"contributors": [

0 comments on commit efadbc8

Please sign in to comment.