mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +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)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
try
|
||||
{
|
||||
std::string msg("Caught exception in destructor: ");
|
||||
@@ -82,7 +83,8 @@ void Bugcheck::unexpected(const char* file, int line)
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user