From 3816e7bda90422283884a1e738701e526ca7fdd3 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 28 Mar 2013 11:39:02 +0100 Subject: [PATCH] Better DEBUG error message when num of arguments is wrong. --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index cd3a22a9..2f62bedb 100644 --- a/src/debug.c +++ b/src/debug.c @@ -338,7 +338,7 @@ void debugCommand(redisClient *c) { server.active_expire_enabled = atoi(c->argv[2]->ptr); addReply(c,shared.ok); } else { - addReplyErrorFormat(c, "Unknown DEBUG subcommand '%s'", + addReplyErrorFormat(c, "Unknown DEBUG subcommand or wrong number of arguments for '%s'", (char*)c->argv[1]->ptr); } }