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;