Globally applies addReplySubSyntaxError

This commit is contained in:
Itamar Haber
2018-06-07 18:39:36 +03:00
parent 76ad23d012
commit c199280edb
8 changed files with 8 additions and 12 deletions

View File

@ -372,7 +372,6 @@ NULL
/* PUBSUB NUMPAT */
addReplyLongLong(c,listLength(server.pubsub_patterns));
} else {
addReplyErrorFormat(c, "Unknown subcommand or wrong number of arguments for '%s'. Try PUBSUB HELP",
(char*)c->argv[1]->ptr);
addReplySubSyntaxError(c);
}
}