Show a generic message for unreadable or corrupted trace files.

FileReadError now also signals truncated or malformed traces, not just
mapping failures, so the mmap-specific text misled users.
This commit is contained in:
Bartosz Taudul
2026-09-12 20:00:58 +02:00
parent 8a5f2c6f8c
commit 2191885f86
2 changed files with 2 additions and 2 deletions

View File

@@ -256,7 +256,7 @@ int main( int argc, char** argv )
}
catch( const tracy::FileReadError& e )
{
fprintf( stderr, "The file you are trying to open cannot be mapped to memory.\n" );
fprintf( stderr, "The file could not be read or is corrupted.\n" );
exit( 1 );
}
catch( const tracy::LegacyVersion& e )