summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-09-03 21:41:31 +0000
committerMarc Laukien <marc@zeroc.com>2002-09-03 21:41:31 +0000
commitf3c736186c06afda8b6d33528c4ef8f4e9e65545 (patch)
tree544d2f801150aba1e2e2a93843afe23737093df1 /cpp/src/IcePatch/Client.cpp
parentalign with Marc's C++ cleanup (diff)
downloadice-f3c736186c06afda8b6d33528c4ef8f4e9e65545.tar.bz2
ice-f3c736186c06afda8b6d33528c4ef8f4e9e65545.tar.xz
ice-f3c736186c06afda8b6d33528c4ef8f4e9e65545.zip
fix
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r--cpp/src/IcePatch/Client.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp
index 1f8acce9955..a24bc493012 100644
--- a/cpp/src/IcePatch/Client.cpp
+++ b/cpp/src/IcePatch/Client.cpp
@@ -252,6 +252,15 @@ IcePatch::Client::run(int argc, char* argv[])
}
return EXIT_FAILURE;
}
+ catch(...)
+ {
+ cout << endl; // There might still be a non-terminated line on cout.
+ if(router)
+ {
+ router->shutdown();
+ }
+ throw; // Let Application::main() print the error message for this exception.
+ }
if(router)
{