summaryrefslogtreecommitdiff
path: root/py/demo/IceGrid/allocate/Client.py
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 /py/demo/IceGrid/allocate/Client.py
parentIgnore ObjectNotRegisteredException (diff)
downloadice-c1835badd657d709ba178f77438d99cf088f5bcf.tar.bz2
ice-c1835badd657d709ba178f77438d99cf088f5bcf.tar.xz
ice-c1835badd657d709ba178f77438d99cf088f5bcf.zip
Added error message if allocation exception
Diffstat (limited to 'py/demo/IceGrid/allocate/Client.py')
-rw-r--r--py/demo/IceGrid/allocate/Client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/demo/IceGrid/allocate/Client.py b/py/demo/IceGrid/allocate/Client.py
index 7fc3ed75a40..716c1863573 100644
--- a/py/demo/IceGrid/allocate/Client.py
+++ b/py/demo/IceGrid/allocate/Client.py
@@ -76,7 +76,8 @@ class Client(Ice.Application):
try:
hello = Demo.HelloPrx.checkedCast(session.allocateObjectById(self.communicator().stringToIdentity("hello")))
except IceGrid.AllocationException, ex:
- pass
+ print self.appName() + ": could not allocate object: " + ex.reason
+ return False
except IceGrid.ObjectNotRegisteredException:
pass
if hello == None: