MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / addReplySubcommandSyntaxError

Function addReplySubcommandSyntaxError

src/networking.cpp:1087–1094  ·  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

1085 * This function is typically invoked by from commands that support
1086 * subcommands in response to an unknown subcommand or argument error. */
1087void addReplySubcommandSyntaxError(client *c) {
1088 sds cmd = sdsnew((char*) ptrFromObj(c->argv[0]));
1089 sdstoupper(cmd);
1090 addReplyErrorFormat(c,
1091 "Unknown subcommand or wrong number of arguments for '%s'. Try %s HELP.",
1092 (char*)ptrFromObj(c->argv[1]),cmd);
1093 sdsfree(cmd);
1094}
1095
1096/* Append 'src' client output buffers into 'dst' client output buffers.
1097 * This function clears the output buffers of 'src' */

Callers 15

pubsubCommandFunction · 0.85
latencyCommandFunction · 0.85
clusterCommandFunction · 0.85
objectCommandFunction · 0.85
memoryCommandFunction · 0.85
xgroupCommandFunction · 0.85
xinfoReplyWithStreamInfoFunction · 0.85
xinfoCommandFunction · 0.85
commandCommandFunction · 0.85
debugCommandFunction · 0.85
moduleCommandFunction · 0.85
sentinelCommandFunction · 0.85

Calls 5

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

Tested by

no test coverage detected