diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-12 13:16:48 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-12 13:36:37 +0300 |
commit | 154c902e036d2da7c72bcb7a85699d5c8a091413 (patch) | |
tree | 8e8a5a8df6bc604352fed27c94b094ce71068eab /update/src | |
parent | 54076e717c0da431298dae57ea9d33082e8e80ac (diff) |
Handle legacy file versions.
Diffstat (limited to 'update/src')
-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 5ed8754a..66a3e5ab 100644 --- a/update/src/update.cpp +++ b/update/src/update.cpp @@ -91,6 +91,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::LegacyVersion& e ) + { + fprintf( stderr, "The file you are trying to open is from a legacy version.\n" ); + exit( 1 ); + } return 0; } |