From 9e86cf3c52d24f5834a0f1be7be0d643a6186fd8 Mon Sep 17 00:00:00 2001 From: Nikhil Savaliya Date: Mon, 6 Jul 2020 13:20:12 +0530 Subject: [PATCH 1/2] Update README.md In multi example replacing err => setError --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6cae87a270e..de221124407 100644 --- a/README.md +++ b/README.md @@ -638,7 +638,7 @@ client.watch("foo", function(watchError) { * If err is null, it means Redis successfully attempted * the operation. */ - if (execError) throw err; + if (execError) throw execError; /** * If results === null, it means that a concurrent client @@ -675,7 +675,7 @@ clients.watcher.watch("foo", function(watchError) { // if you comment out the next line, the transaction will work clients.modifier.set("foo", Math.random(), setError => { - if (setError) throw err; + if (setError) throw setError; }); // using a setTimeout here to ensure that the MULTI/EXEC will come after the SET. From e4cb073be29ca2e346f40e4dfe9050f6e3be06ee Mon Sep 17 00:00:00 2001 From: Likai Ren Date: Wed, 3 Feb 2021 13:25:37 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6cae87a270e..abf95b10fa3 100644 --- a/README.md +++ b/README.md @@ -394,7 +394,7 @@ responses using JavaScript syntax. ```js client.hmset("key", "foo", "bar", "hello", "world"); -client.hgetall("hosts", function(err, value) { +client.hgetall("key", function(err, value) { console.log(value.foo); // > "bar" console.log(value.hello); // > "world" });