summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-10-14 14:30:41 +0200
committerantirez <antirez@gmail.com>2011-10-14 14:30:41 +0200
commit71bb31bf167f9820502384b368898a29a2ecf73d (patch)
treea2c2f70e64616f3071c4163da5460d1748519318
parentc7d23f3ed1d29f18e77a05afbed1d526938295d3 (diff)
downloadredis-71bb31bf167f9820502384b368898a29a2ecf73d.tar.gz
More informative error when DEBUG RELOAD fails.
-rw-r--r--src/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index f3b557c42..b937cd3b0 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -224,7 +224,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");