@@ -394,7 +394,7 @@ responses using JavaScript syntax.
394
394
``` js
395
395
client .hmset (" key" , " foo" , " bar" , " hello" , " world" );
396
396
397
- client .hgetall (" hosts " , function (err , value ) {
397
+ client .hgetall (" key " , function (err , value ) {
398
398
console .log (value .foo ); // > "bar"
399
399
console .log (value .hello ); // > "world"
400
400
});
@@ -638,7 +638,7 @@ client.watch("foo", function(watchError) {
638
638
* If err is null, it means Redis successfully attempted
639
639
* the operation.
640
640
*/
641
- if (execError) throw err ;
641
+ if (execError) throw execError ;
642
642
643
643
/**
644
644
* If results === null, it means that a concurrent client
@@ -675,7 +675,7 @@ clients.watcher.watch("foo", function(watchError) {
675
675
676
676
// if you comment out the next line, the transaction will work
677
677
clients .modifier .set (" foo" , Math .random (), setError => {
678
- if (setError) throw err ;
678
+ if (setError) throw setError ;
679
679
});
680
680
681
681
// using a setTimeout here to ensure that the MULTI/EXEC will come after the SET.
0 commit comments