Browse Source

fix exception printing

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1727/head
R4SAS 3 years ago
parent
commit
90130b5492
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 4
      libi2pd/util.cpp

4
libi2pd/util.cpp

@ -410,7 +410,7 @@ namespace net @@ -410,7 +410,7 @@ namespace net
}
catch (std::exception& ex)
{
LogPrint(eLogError, "NetIface: Exception while searching address using ifaddr: ", ex);
LogPrint(eLogError, "NetIface: Exception while searching address using ifaddr: ", ex.what());
}
if(addrs) freeifaddrs(addrs);
@ -511,7 +511,7 @@ namespace net @@ -511,7 +511,7 @@ namespace net
}
catch (std::exception& ex)
{
LogPrint(eLogError, "NetIface: Exception while searching Yggdrasill address using ifaddr: ", ex);
LogPrint(eLogError, "NetIface: Exception while searching Yggdrasill address using ifaddr: ", ex.what());
}
LogPrint(eLogWarning, "NetIface: Interface with Yggdrasil network address not found");
if(addrs) freeifaddrs(addrs);

Loading…
Cancel
Save