Skip to content

Commit fe0ef9e

Browse files
authored
Merge branch 'master' into auth_pwd_user
2 parents 20fb4ff + c78b6d5 commit fe0ef9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ responses using JavaScript syntax.
394394
```js
395395
client.hmset("key", "foo", "bar", "hello", "world");
396396

397-
client.hgetall("hosts", function(err, value) {
397+
client.hgetall("key", function(err, value) {
398398
console.log(value.foo); // > "bar"
399399
console.log(value.hello); // > "world"
400400
});
@@ -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)