summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2006-09-07 03:19:17 +0000
committerMatthew Newhook <matthew@zeroc.com>2006-09-07 03:19:17 +0000
commitb2af8a56b56f819683eda4f4790b5eaefcd699af (patch)
treee712372680d5001a88379a7da330d5b832cc65ea /cpp
parentreaper thread does not use a fixed timeout. (diff)
downloadice-b2af8a56b56f819683eda4f4790b5eaefcd699af.tar.bz2
ice-b2af8a56b56f819683eda4f4790b5eaefcd699af.tar.xz
ice-b2af8a56b56f819683eda4f4790b5eaefcd699af.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1326
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Glacier2/SessionRouterI.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Glacier2/SessionRouterI.cpp b/cpp/src/Glacier2/SessionRouterI.cpp
index a32c9c6abe1..40b081f3f34 100644
--- a/cpp/src/Glacier2/SessionRouterI.cpp
+++ b/cpp/src/Glacier2/SessionRouterI.cpp
@@ -798,7 +798,14 @@ Glacier2::SessionRouterI::createSessionInternal(const string& userId, bool allow
if(!ok)
{
PermissionDeniedException exc;
- exc.reason = reason;
+ if(reason.empty())
+ {
+ exc.reason = "permission denied";
+ }
+ else
+ {
+ exc.reason = reason;
+ }
throw exc;
}
}