Change error message for #6775.

This commit is contained in:
antirez 2020-01-15 17:55:24 +01:00
parent b2ccea5f3c
commit c0bdf0eb73

View File

@ -3499,8 +3499,8 @@ int processCommand(client *c) {
c->cmd->proc != psubscribeCommand &&
c->cmd->proc != punsubscribeCommand) {
addReplyErrorFormat(c,
"'%s' command submitted, but only (P)SUBSCRIBE / "
"(P)UNSUBSCRIBE / PING / QUIT allowed in this context",
"Can't execute '%s': only (P)SUBSCRIBE / "
"(P)UNSUBSCRIBE / PING / QUIT are allowed in this context",
c->cmd->name);
return C_OK;
}