You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Amended subscriber mode error message
This commit is contained in:
2
index.js
2
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;
|
||||
|
Reference in New Issue
Block a user