summaryrefslogtreecommitdiff
path: root/cpp/demo/IceGrid/allocate/Client.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-07-07 12:44:30 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-07-07 12:44:30 +0000
commitc1835badd657d709ba178f77438d99cf088f5bcf (patch)
tree57b101a355c89bdb1dc13593314f26df3000c4fe /cpp/demo/IceGrid/allocate/Client.cpp
parentIgnore ObjectNotRegisteredException (diff)
downloadice-c1835badd657d709ba178f77438d99cf088f5bcf.tar.bz2
ice-c1835badd657d709ba178f77438d99cf088f5bcf.tar.xz
ice-c1835badd657d709ba178f77438d99cf088f5bcf.zip
Added error message if allocation exception
Diffstat (limited to 'cpp/demo/IceGrid/allocate/Client.cpp')
-rw-r--r--cpp/demo/IceGrid/allocate/Client.cpp4
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&)
{