1
0
Fork 0

Improve error handling.

This commit is contained in:
Max Neunhoeffer 2016-06-06 13:26:19 +02:00
parent 41633d534e
commit 3dfecf8293
1 changed files with 1 additions and 1 deletions

View File

@ -1942,7 +1942,7 @@ void ClusterInfo::loadServers() {
result.slice()[0].get(std::vector<std::string>(
{AgencyComm::prefix(), "Current", "ServersRegistered"}));
if (!serversRegistered.isNone()) {
if (serversRegistered.isObject()) {
decltype(_servers) newServers;
for (auto const& res : VPackObjectIterator(serversRegistered)) {