]> git.saurik.com Git - redis.git/commitdiff
More informative error when DEBUG RELOAD fails.
authorantirez <antirez@gmail.com>
Fri, 14 Oct 2011 12:30:41 +0000 (14:30 +0200)
committerantirez <antirez@gmail.com>
Fri, 14 Oct 2011 12:31:33 +0000 (14:31 +0200)
src/debug.c

index 05181912f78b5ac59a141153ffd8d4018f2ad701..7751adf932b280d552d410c7de2537c0bd85a430 100644 (file)
@@ -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");