tcp_socket.cpp: More verbose error message

This commit is contained in:
theoreticalbts 2016-08-16 14:51:50 -04:00
parent 894d784523
commit a7376ceba2

View file

@ -159,7 +159,7 @@ namespace fc {
}
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()));
}
}