]> git.saurik.com Git - redis.git/blobdiff - src/debug.c
More informative error when DEBUG RELOAD fails.
[redis.git] / 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");