summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-09-04 21:00:56 +0000
committerMarc Laukien <marc@zeroc.com>2002-09-04 21:00:56 +0000
commita89f60477a4c4b31f7265683fdbc28a44d7f65bc (patch)
treedc7193d6b0a15ed49665cef5644ac38a83be2058 /cpp/src/IcePatch/Client.cpp
parentmore IcePatch work (diff)
downloadice-a89f60477a4c4b31f7265683fdbc28a44d7f65bc.tar.bz2
ice-a89f60477a4c4b31f7265683fdbc28a44d7f65bc.tar.xz
ice-a89f60477a4c4b31f7265683fdbc28a44d7f65bc.zip
more icepatch stuff
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r--cpp/src/IcePatch/Client.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp
index 21fc1f9880e..1fe50d674e3 100644
--- a/cpp/src/IcePatch/Client.cpp
+++ b/cpp/src/IcePatch/Client.cpp
@@ -248,8 +248,15 @@ IcePatch::Client::run(int argc, char* argv[])
{
Identity identity = pathToIdentity(*p);
ObjectPrx topObj = communicator()->stringToProxy(identityToString(identity) + ':' + endpoints);
-
- FilePrx top = FilePrx::checkedCast(topObj);
+ FilePrx top;
+ try
+ {
+ top = FilePrx::checkedCast(topObj);
+ }
+ catch(const ObjectNotExistException&)
+ {
+ }
+
if(!top)
{
cerr << appName() << ": `" << *p << "' does not exist" << endl;
@@ -282,7 +289,6 @@ IcePatch::Client::run(int argc, char* argv[])
}
cout << pathToName(*p) << endl;
- cout << "|" << endl;
patch(topDesc, "");
}