summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.c b/src/server.c
index 3f64aaec9..2b226f568 100644
--- a/src/server.c
+++ b/src/server.c
@@ -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;
}