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
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-08-12 13:16:48 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-08-12 13:36:37 +0300
commit154c902e036d2da7c72bcb7a85699d5c8a091413 (patch)
tree8e8a5a8df6bc604352fed27c94b094ce71068eab /update/src
parent54076e717c0da431298dae57ea9d33082e8e80ac (diff)
Handle legacy file versions.
Diffstat (limited to 'update/src')
-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 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;
}