tcp_socket.cpp: More verbose error message
This commit is contained in:
parent
894d784523
commit
a7376ceba2
1 changed files with 2 additions and 2 deletions
|
|
@ -154,12 +154,12 @@ namespace fc {
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
my->_sock.bind(boost::asio::ip::tcp::endpoint(boost::asio::ip::address_v4(local_endpoint.get_address()),
|
my->_sock.bind(boost::asio::ip::tcp::endpoint(boost::asio::ip::address_v4(local_endpoint.get_address()),
|
||||||
local_endpoint.port()));
|
local_endpoint.port()));
|
||||||
}
|
}
|
||||||
catch (const std::exception& except)
|
catch (const std::exception& except)
|
||||||
{
|
{
|
||||||
elog("Exception binding outgoing connection to desired local endpoint: ${what}", ("what", except.what()));
|
elog("Exception binding outgoing connection to desired local endpoint ${endpoint}: ${what}", ("endpoint", local_endpoint)("what", except.what()));
|
||||||
FC_THROW("error binding to ${endpoint}: ${what}", ("endpoint", local_endpoint)("what", except.what()));
|
FC_THROW("error binding to ${endpoint}: ${what}", ("endpoint", local_endpoint)("what", except.what()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue