Commit 18d65849 authored by antirez's avatar antirez
Browse files

redis-cli: fix #5096 double error message.

parent 84620327
...@@ -504,7 +504,7 @@ static void cliInitHelp(void) { ...@@ -504,7 +504,7 @@ static void cliInitHelp(void) {
* entries with additional entries obtained using the COMMAND command * entries with additional entries obtained using the COMMAND command
* available in recent versions of Redis. */ * available in recent versions of Redis. */
static void cliIntegrateHelp(void) { static void cliIntegrateHelp(void) {
if (cliConnect(0) == REDIS_ERR) return; if (cliConnect(CC_QUIET) == REDIS_ERR) return;
redisReply *reply = redisCommand(context, "COMMAND"); redisReply *reply = redisCommand(context, "COMMAND");
if(reply == NULL || reply->type != REDIS_REPLY_ARRAY) return; if(reply == NULL || reply->type != REDIS_REPLY_ARRAY) return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment