Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/update
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2020-02-12 21:53:37 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2020-02-12 21:53:37 +0300
commit1492536bdb113b28ac344bd824a38864404117d5 (patch)
tree580ee6d8643cbbce8d1b0a13e1cc3a8af2935f6a /update
parenteb79507501b8545e44dcf68165f42eaea250e261 (diff)
Handle FileReadError.
Diffstat (limited to 'update')
-rw-r--r--update/src/update.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/update/src/update.cpp b/update/src/update.cpp
index d7b4bf25..26d1968f 100644
--- a/update/src/update.cpp
+++ b/update/src/update.cpp
@@ -139,6 +139,11 @@ int main( int argc, char** argv )
fprintf( stderr, "The file you are trying to open is not a tracy dump.\n" );
exit( 1 );
}
+ catch( const tracy::FileReadError& e )
+ {
+ fprintf( stderr, "The file you are trying to open cannot be mapped to memory.\n" );
+ exit( 1 );
+ }
catch( const tracy::LegacyVersion& e )
{
fprintf( stderr, "The file you are trying to open is from a legacy version.\n" );