diff options
Diffstat (limited to 'cpp/demo/book/lifecycle/Client.cpp')
-rw-r--r-- | cpp/demo/book/lifecycle/Client.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/demo/book/lifecycle/Client.cpp b/cpp/demo/book/lifecycle/Client.cpp index 0e74b129254..329d6bac954 100644 --- a/cpp/demo/book/lifecycle/Client.cpp +++ b/cpp/demo/book/lifecycle/Client.cpp @@ -18,21 +18,25 @@ class FilesystemClient : virtual public Ice::Application { public: virtual int run(int, char * []) { - // Terminate cleanly on receipt of a signal + // Terminate cleanly on receipt of a signal. // shutdownOnInterrupt(); // Create a proxy for the root directory // Ice::ObjectPrx base = communicator()->stringToProxy("RootDir:default -p 10000"); - if (!base) + if(!base) + { throw "Could not create proxy"; + } - // Down-cast the proxy to a Directory proxy + // Down-cast the proxy to a Directory proxy. // DirectoryPrx rootDir = DirectoryPrx::checkedCast(base); - if (!rootDir) + if(!rootDir) + { throw "Invalid proxy"; + } ParserPtr p = new Parser(rootDir); return p->parse(); |