1
0
forked from boostorg/core

Add newlines, fflush

This commit is contained in:
Peter Dimov
2022-02-15 05:10:41 +02:00
parent ec91f29d56
commit 230dd83002

View File

@ -30,7 +30,7 @@ BOOST_NORETURN inline void verbose_terminate_handler()
#if defined(BOOST_NO_EXCEPTIONS)
std::fputs( "std::terminate called with exceptions disabled", stderr );
std::fputs( "std::terminate called with exceptions disabled\n", stderr );
#else
@ -73,11 +73,12 @@ BOOST_NORETURN inline void verbose_terminate_handler()
}
catch( ... )
{
std::fputs( "std::terminate called after throwing an unknown exception", stderr );
std::fputs( "std::terminate called after throwing an unknown exception\n", stderr );
}
#endif
std::fflush( stdout );
std::abort();
}