diff --git a/daemon/redis.c b/daemon/redis.c index 8d33f0ec8..17aeaa175 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -212,9 +212,11 @@ done: err3: freeReplyObject(rp); err2: - if (r->ctx->err) - rlog(LOG_ERR, "Redis %s error: %s", + if (r->ctx->err) { + rlog(LOG_ERR, "Failed to connect to Redis %s, error: %s", endpoint_print_buf(&r->endpoint), r->ctx->errstr); + return -1; + } err: rlog(LOG_ERR, "Failed to connect to Redis %s", endpoint_print_buf(&r->endpoint));