From 668a3838e26b4e21a8635bd4ea39c3f7da96e2c8 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 26 Feb 2019 00:13:38 +0100 Subject: Generate imports for types defined in separate Swift modules --- cpp/src/slice2swift/Main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cpp/src/slice2swift/Main.cpp') 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& 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; } } -- cgit v1.2.3