print messages when unexpected exceptions are thrown
This commit is contained in:
1 parent
6e091d3991
commit
9a07dde16d
3 files changed
+24
-2
No files matched your search
@@ -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