mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-05 23:10:48 +00:00
print messages when unexpected exceptions are thrown
This commit is contained in:
parent
6e091d3991
commit
9a07dde16d
3 changed files with 24 additions and 2 deletions
|
@ -38,7 +38,10 @@ namespace Catch {
|
|||
{}
|
||||
|
||||
ScopedMessage::~ScopedMessage() {
|
||||
getResultCapture().popScopedMessage( m_info );
|
||||
if (!std::uncaught_exception())
|
||||
{
|
||||
getResultCapture().popScopedMessage(m_info);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue