diff options
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r-- | cpp/src/IcePatch/Client.cpp | 12 |
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, ""); } |