mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +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
|
||||
}
|
||||
}
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user