BGREWRITEAOF: improve the generic error message.

This commit is contained in:
antirez 2019-09-26 16:14:21 +02:00
parent b7b23bdfb8
commit fddc4757c8

View File

@ -1630,7 +1630,8 @@ void bgrewriteaofCommand(client *c) {
} else if (rewriteAppendOnlyFileBackground() == C_OK) { } else if (rewriteAppendOnlyFileBackground() == C_OK) {
addReplyStatus(c,"Background append only file rewriting started"); addReplyStatus(c,"Background append only file rewriting started");
} else { } else {
addReply(c,shared.err); addReplyError(c,"Can't execute an AOF background rewriting. "
"Please check the server logs for more information.");
} }
} }