1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Amended subscriber mode error message

This commit is contained in:
Luke Plaster
2013-04-14 16:45:25 +01:00
parent f558cae049
commit e63947b0b6

View File

@@ -755,7 +755,7 @@ RedisClient.prototype.send_command = function (command, args, callback) {
} else if (command === "quit") { } else if (command === "quit") {
this.closing = true; this.closing = true;
} else if (this.pub_sub_mode === 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.command_queue.push(command_obj);
this.commands_sent += 1; this.commands_sent += 1;