diff --git a/src/cluster.c b/src/cluster.c index ecbcc0a9..be0522ca 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -103,7 +103,16 @@ int clusterLoadConfig(char *filename) { char *line; int maxline, j; - if (fp == NULL) return REDIS_ERR; + if (fp == NULL) { + if (errno == ENOENT) { + return REDIS_ERR; + } else { + redisLog(REDIS_WARNING, + "Loading the cluster node config from %s: %s", + filename, strerror(errno)); + exit(1); + } + } /* Check if the file is zero-length: if so return REDIS_ERR to signal * we have to write the config. */