summaryrefslogtreecommitdiff
path: root/java/demo/IceGrid/allocate/Client.java
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 /java/demo/IceGrid/allocate/Client.java
parentIgnore ObjectNotRegisteredException (diff)
downloadice-c1835badd657d709ba178f77438d99cf088f5bcf.tar.bz2
ice-c1835badd657d709ba178f77438d99cf088f5bcf.tar.xz
ice-c1835badd657d709ba178f77438d99cf088f5bcf.zip
Added error message if allocation exception
Diffstat (limited to 'java/demo/IceGrid/allocate/Client.java')
-rw-r--r--java/demo/IceGrid/allocate/Client.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/demo/IceGrid/allocate/Client.java b/java/demo/IceGrid/allocate/Client.java
index 300169ac940..09c4662303d 100644
--- a/java/demo/IceGrid/allocate/Client.java
+++ b/java/demo/IceGrid/allocate/Client.java
@@ -130,6 +130,8 @@ public class Client extends Ice.Application
}
catch(IceGrid.AllocationException ex)
{
+ System.err.println("could not allocate object: " + ex.reason);
+ return 1;
}
catch(IceGrid.ObjectNotRegisteredException ex)
{