From 3ef6c840cf927d4a0792cfaebe2960a8eb0e298d Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 14 Oct 2011 14:30:41 +0200 Subject: [PATCH] More informative error when DEBUG RELOAD fails. --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index 05181912f..7751adf93 100644 --- a/src/debug.c +++ b/src/debug.c @@ -222,7 +222,7 @@ void debugCommand(redisClient *c) { } emptyDb(); if (rdbLoad(server.dbfilename) != REDIS_OK) { - addReply(c,shared.err); + addReplyError(c,"Error trying to load the RDB dump"); return; } redisLog(REDIS_WARNING,"DB reloaded by DEBUG RELOAD");