From fddc4757c8c585d384889c1c7efba1ccf2121e6b Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 26 Sep 2019 16:14:21 +0200 Subject: [PATCH] BGREWRITEAOF: improve the generic error message. --- src/aof.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aof.c b/src/aof.c index 7237cdfbc..91d0d1a76 100644 --- a/src/aof.c +++ b/src/aof.c @@ -1630,7 +1630,8 @@ void bgrewriteaofCommand(client *c) { } else if (rewriteAppendOnlyFileBackground() == C_OK) { addReplyStatus(c,"Background append only file rewriting started"); } else { - addReply(c,shared.err); + addReplyError(c,"Can't execute an AOF background rewriting. " + "Please check the server logs for more information."); } }