From 455da35c7f34a6f1e36d862ed6466a34948f3b4f Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 15 Feb 2013 16:53:24 +0100 Subject: [PATCH] Cluster: specific error code for cluster down condition. --- src/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index 95a9ac22..9bc797d1 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1662,7 +1662,7 @@ int processCommand(redisClient *c) { int hashslot; if (server.cluster->state != REDIS_CLUSTER_OK) { - addReplyError(c,"The cluster is down. Check with CLUSTER INFO for more information"); + addReplySds(c,sdsnew("-CLUSTERDOWN The cluster is down. Use CLUSTER INFO for more information\r\n")); return REDIS_OK; } else { int ask;