Commits

Anonymous committed 455da35

Cluster: specific error code for cluster down condition.

Comments (0)

Files changed (1)

         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;