From e63947b0b642aa06e57a2be43df30516ba3b039b Mon Sep 17 00:00:00 2001 From: Luke Plaster Date: Sun, 14 Apr 2013 16:45:25 +0100 Subject: [PATCH] Amended subscriber mode error message --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 283c743fb1..6bc76d54a1 100644 --- a/index.js +++ b/index.js @@ -755,7 +755,7 @@ RedisClient.prototype.send_command = function (command, args, callback) { } else if (command === "quit") { this.closing = true; } else if (this.pub_sub_mode === true) { - throw new Error("Connection in pub/sub mode, only pub/sub commands may be used"); + throw new Error("Connection in subscriber mode, only subscriber commands may be used"); } this.command_queue.push(command_obj); this.commands_sent += 1;