Preserve crash in debug mode

This commit is contained in:
Peter Conrad 2019-09-17 08:04:23 +02:00
parent 201b4b33f0
commit ef52b39036

View file

@ -393,7 +393,10 @@ namespace fc {
* a catch block; it fails to catch a yield while unwinding the stack, which
* is probably just as likely to cause crashes */
if( std::current_exception() != std::exception_ptr() )
{
print_stacktrace( std::cerr );
assert( std::current_exception() != std::exception_ptr() );
}
check_for_timeouts();
if( !current )