Display failure context in capture utility.

This commit is contained in:
Bartosz Taudul 2021-10-10 14:52:30 +02:00
parent 20074e64f4
commit 13b28714ee
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -183,6 +183,10 @@ int main( int argc, char** argv )
{
printf( "\n\033[31;1mInstrumentation failure: %s\033[0m", tracy::Worker::GetFailureString( failure ) );
auto& fd = worker.GetFailureData();
if( !fd.message.empty() )
{
printf( "\nContext: %s", fd.message.c_str() );
}
if( fd.callstack != 0 )
{
printf( "\n\033[1mFailure callstack:\033[0m\n" );