mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-09-16 17:27:18 +02:00
Expand exception message.
This commit is contained in:
@@ -357,6 +357,10 @@ protected:
|
|||||||
std::this_thread::sleep_for(50ms); // Sleep for 1/20'th of a second
|
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)
|
catch (const std::exception & e)
|
||||||
{
|
{
|
||||||
if (mLog) LogErr("Announcer failed: %s", e.what());
|
if (mLog) LogErr("Announcer failed: %s", e.what());
|
||||||
@@ -438,6 +442,14 @@ protected:
|
|||||||
// Send the content
|
// Send the content
|
||||||
os << body;
|
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)
|
catch (const std::exception & e)
|
||||||
{
|
{
|
||||||
if (mLog) LogErr("Request failed: %s", e.what());
|
if (mLog) LogErr("Request failed: %s", e.what());
|
||||||
|
Reference in New Issue
Block a user