Skip to content

Commit c78b6d5

Browse files
authored
Merge pull request #1527 from heynikhil/patch-1
Update README.md
2 parents 232f191 + 53f1468 commit c78b6d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ client.watch("foo", function(watchError) {
638638
* If err is null, it means Redis successfully attempted
639639
* the operation.
640640
*/
641-
if (execError) throw err;
641+
if (execError) throw execError;
642642

643643
/**
644644
* If results === null, it means that a concurrent client
@@ -675,7 +675,7 @@ clients.watcher.watch("foo", function(watchError) {
675675

676676
// if you comment out the next line, the transaction will work
677677
clients.modifier.set("foo", Math.random(), setError => {
678-
if (setError) throw err;
678+
if (setError) throw setError;
679679
});
680680

681681
// using a setTimeout here to ensure that the MULTI/EXEC will come after the SET.

0 commit comments

Comments
 (0)