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. */
| 922 | * This function is typically invoked by from commands that support |
| 923 | * subcommands in response to an unknown subcommand or argument error. */ |
| 924 | void 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' */ |
no test coverage detected