Skip to content

Commit e63947b

Browse files
committed
Amended subscriber mode error message
1 parent f558cae commit e63947b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ RedisClient.prototype.send_command = function (command, args, callback) {
755755
} else if (command === "quit") {
756756
this.closing = true;
757757
} else if (this.pub_sub_mode === true) {
758-
throw new Error("Connection in pub/sub mode, only pub/sub commands may be used");
758+
throw new Error("Connection in subscriber mode, only subscriber commands may be used");
759759
}
760760
this.command_queue.push(command_obj);
761761
this.commands_sent += 1;

0 commit comments

Comments
 (0)