avoid unnecessary re-throw
"Failed to initialize UDP transport" is not a useful error message
This commit is contained in:
@@ -727,7 +727,6 @@ void initializeUDPTransports(bool serverFlag,
|
||||
node.validBcast ? inetAddressToString(node.mask, false).c_str() : "<none>",
|
||||
node.validBcast ? inetAddressToString(node.bcast, false).c_str() : "<none>",
|
||||
node.validP2P ? inetAddressToString(node.peer, false).c_str() : "<none>");
|
||||
try
|
||||
{
|
||||
// where to bind (listen) address
|
||||
osiSockAddr listenLocalAddress;
|
||||
@@ -800,14 +799,6 @@ void initializeUDPTransports(bool serverFlag,
|
||||
udpTransports.push_back(transport2);
|
||||
}
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
THROW_BASE_EXCEPTION_CAUSE("Failed to initialize UDP transport.", e);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
THROW_BASE_EXCEPTION("Failed to initialize UDP transport.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user