1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Expand exception message.

This commit is contained in:
Sandu Liviu Catalin 2021-02-03 15:45:55 +02:00
parent 89bc0a5a3b
commit 2c8861403e

View File

@ -357,6 +357,10 @@ protected:
std::this_thread::sleep_for(50ms); // Sleep for 1/20'th of a second
}
}
catch (const Poco::Exception & e)
{
if (mLog) LogErr("Announcer failed: %s -> %s", e.what(), e.message().c_str());
}
catch (const std::exception & e)
{
if (mLog) LogErr("Announcer failed: %s", e.what());
@ -438,6 +442,14 @@ protected:
// Send the content
os << body;
}
catch (const Poco::Exception & e)
{
if (mLog) LogErr("Request failed: %s -> %s", e.what(), e.message().c_str());
// Failed!
DoFailed();
// Probably the server is offline
return;
}
catch (const std::exception & e)
{
if (mLog) LogErr("Request failed: %s", e.what());