MCPcopy Create free account
hub / github.com/F-Stack/f-stack / addReplySubcommandSyntaxError

Function addReplySubcommandSyntaxError

app/redis-6.2.6/src/networking.c:924–931  ·  view source on GitHub ↗

Add a suggestive error reply. * This function is typically invoked by from commands that support * subcommands in response to an unknown subcommand or argument error. */

Source from the content-addressed store, hash-verified

922 * This function is typically invoked by from commands that support
923 * subcommands in response to an unknown subcommand or argument error. */
924void addReplySubcommandSyntaxError(client *c) {
925 sds cmd = sdsnew((char*) c->argv[0]->ptr);
926 sdstoupper(cmd);
927 addReplyErrorFormat(c,
928 "Unknown subcommand or wrong number of arguments for '%s'. Try %s HELP.",
929 (char*)c->argv[1]->ptr,cmd);
930 sdsfree(cmd);
931}
932
933/* Append 'src' client output buffers into 'dst' client output buffers.
934 * This function clears the output buffers of 'src' */

Callers 15

configCommandFunction · 0.85
scriptCommandFunction · 0.85
pubsubCommandFunction · 0.85
sentinelCommandFunction · 0.85
slowlogCommandFunction · 0.85
commandCommandFunction · 0.85
objectCommandFunction · 0.85
memoryCommandFunction · 0.85
clientCommandFunction · 0.85
clusterCommandFunction · 0.85
aclCommandFunction · 0.85
debugCommandFunction · 0.85

Calls 4

sdsnewFunction · 0.85
sdstoupperFunction · 0.85
addReplyErrorFormatFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected