be more verbose about failures

pull/230/head
Ryan Tharp 5 years ago
parent 8406ed0569
commit 6c0d8572c6

@ -106,13 +106,20 @@ namespace llarp
while(itr != conf.end())
{
if(!endpoint->SetOption(itr->first, itr->second))
{
llarp::LogWarn("Couldn't set option ", itr->first, " to ",
itr->second);
return false;
}
++itr;
}
}
// add endpoint
if(!endpoint->Start())
{
llarp::LogWarn("Couldn't start exit endpoint");
return false;
}
m_Exits.emplace(name, std::move(endpoint));
return true;
}

Loading…
Cancel
Save