fixed multiple provider channeList when one fails

This commit is contained in:
Matej Sekoranja
2015-11-09 10:37:35 +01:00
parent 837479bb30
commit 7e2c216389
+6 -1
View File
@@ -555,7 +555,12 @@ public:
string errorMessage = "failed to fetch channel list: " + status.getMessage();
if (!status.getStackDump().empty())
errorMessage += "\n" + status.getStackDump();
throw RPCRequestException(Status::STATUSTYPE_ERROR, errorMessage);
if (providerCount == 1)
throw RPCRequestException(Status::STATUSTYPE_ERROR, errorMessage);
else
{
LOG(logLevelDebug, "%s: %s", providers[i]->getProviderName().c_str(), errorMessage.c_str());
}
}
// optimization