diff options
Diffstat (limited to 'cpp/src/slice2swift/Main.cpp')
-rw-r--r-- | cpp/src/slice2swift/Main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/slice2swift/Main.cpp b/cpp/src/slice2swift/Main.cpp index b2c471eb328..2a045087260 100644 --- a/cpp/src/slice2swift/Main.cpp +++ b/cpp/src/slice2swift/Main.cpp @@ -301,7 +301,13 @@ compile(const vector<string>& argv) u->destroy(); consoleErr << argv[0] << ": error: " << ex.reason() << endl; status = EXIT_FAILURE; - FileTracker::instance()->error(); + break; + } + catch(const Slice::CompilerException&) + { + FileTracker::instance()->cleanup(); + u->destroy(); + status = EXIT_FAILURE; break; } } |