summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Main.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-02-26 00:13:38 +0100
committerJose <jose@zeroc.com>2019-02-26 00:14:51 +0100
commit668a3838e26b4e21a8635bd4ea39c3f7da96e2c8 (patch)
tree3a598d5e05995ef82787dfd262ace44511ca8db3 /cpp/src/slice2swift/Main.cpp
parentFloat/double fixes and some linting (diff)
downloadice-668a3838e26b4e21a8635bd4ea39c3f7da96e2c8.tar.bz2
ice-668a3838e26b4e21a8635bd4ea39c3f7da96e2c8.tar.xz
ice-668a3838e26b4e21a8635bd4ea39c3f7da96e2c8.zip
Generate imports for types defined in separate Swift modules
Diffstat (limited to 'cpp/src/slice2swift/Main.cpp')
-rw-r--r--cpp/src/slice2swift/Main.cpp8
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;
}
}