mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 09:57:14 +01:00
Expand exception message.
This commit is contained in:
parent
89bc0a5a3b
commit
2c8861403e
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user