mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 14:36:42 +08:00
fix bug when conf define SentinelServerPool but without Sentinels instances
This commit is contained in:
parent
45661645ed
commit
996e02fd4d
@ -586,7 +586,7 @@ bool Conf::setServers(std::vector<ServerConf>& 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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user