From 996e02fd4d65f70d1c48fcd737e98da01c66b1cb Mon Sep 17 00:00:00 2001 From: fortrue Date: Thu, 28 Dec 2017 21:05:19 +0800 Subject: [PATCH] fix bug when conf define SentinelServerPool but without Sentinels instances --- src/Conf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Conf.cpp b/src/Conf.cpp index b5d89a3..b1a5024 100644 --- a/src/Conf.cpp +++ b/src/Conf.cpp @@ -586,7 +586,7 @@ bool Conf::setServers(std::vector& servs, const char* name, const Co return false; } if (!p->sub) { - Throw(InvalidValue, "%s:%d %s require scope value", name, p->file, p->line); + Throw(InvalidValue, "%s:%d %s require scope value", p->file, p->line, name); } for (auto n = p->sub; n; n = n->next) { if (strcasecmp(n->key.c_str(), "+") == 0) {