diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2020-02-12 21:53:37 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2020-02-12 21:53:37 +0300 |
commit | 1492536bdb113b28ac344bd824a38864404117d5 (patch) | |
tree | 580ee6d8643cbbce8d1b0a13e1cc3a8af2935f6a /update | |
parent | eb79507501b8545e44dcf68165f42eaea250e261 (diff) |
Handle FileReadError.
Diffstat (limited to 'update')
-rw-r--r-- | update/src/update.cpp | 5 |
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" ); |