mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
print messages when unexpected exceptions are thrown
This commit is contained in:

committed by
Martin Hořeňovský

parent
6e091d3991
commit
9a07dde16d
@@ -38,7 +38,10 @@ namespace Catch {
|
||||
{}
|
||||
|
||||
ScopedMessage::~ScopedMessage() {
|
||||
getResultCapture().popScopedMessage( m_info );
|
||||
if (!std::uncaught_exception())
|
||||
{
|
||||
getResultCapture().popScopedMessage(m_info);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user