diff options
Diffstat (limited to 'cpp/demo/IceGrid/allocate/Client.cpp')
-rw-r--r-- | cpp/demo/IceGrid/allocate/Client.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/demo/IceGrid/allocate/Client.cpp b/cpp/demo/IceGrid/allocate/Client.cpp index 9048fa07f4c..7551adde5f3 100644 --- a/cpp/demo/IceGrid/allocate/Client.cpp +++ b/cpp/demo/IceGrid/allocate/Client.cpp @@ -156,8 +156,10 @@ HelloClient::run(int argc, char* argv[]) { hello = HelloPrx::checkedCast(session->allocateObjectById(communicator()->stringToIdentity("hello"))); } - catch(const IceGrid::AllocationException&) + catch(const IceGrid::AllocationException& ex) { + cerr << argv[0] << ": could not allocate object: " << ex.reason << endl; + return EXIT_FAILURE; } catch(const IceGrid::ObjectNotRegisteredException&) { |