mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 10:09:36 +02:00
Bugcheck::unexpected() only reports the exception in debug builds
This commit is contained in:
@@ -59,6 +59,7 @@ void Bugcheck::bugcheck(const char* msg, const char* file, int line)
|
|||||||
|
|
||||||
void Bugcheck::unexpected(const char* file, int line)
|
void Bugcheck::unexpected(const char* file, int line)
|
||||||
{
|
{
|
||||||
|
#ifdef _DEBUG
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
std::string msg("Caught exception in destructor: ");
|
std::string msg("Caught exception in destructor: ");
|
||||||
@@ -83,6 +84,7 @@ void Bugcheck::unexpected(const char* file, int line)
|
|||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user