Log when CONFIG REWRITE goes bad.

This commit is contained in:
antirez 2014-02-13 14:32:44 +01:00
parent f2bdf601be
commit 7e8abcf693

View File

@ -1824,6 +1824,7 @@ void configCommand(redisClient *c) {
return;
}
if (rewriteConfig(server.configfile) == -1) {
redisLog(REDIS_WARNING,"CONFIG REWRITE failed: %s", strerror(errno));
addReplyErrorFormat(c,"Rewriting config file: %s", strerror(errno));
} else {
addReply(c,shared.ok);