diff options
author | Matthew Newhook <matthew@zeroc.com> | 2006-09-07 03:19:17 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2006-09-07 03:19:17 +0000 |
commit | b2af8a56b56f819683eda4f4790b5eaefcd699af (patch) | |
tree | e712372680d5001a88379a7da330d5b832cc65ea /cpp/src | |
parent | reaper thread does not use a fixed timeout. (diff) | |
download | ice-b2af8a56b56f819683eda4f4790b5eaefcd699af.tar.bz2 ice-b2af8a56b56f819683eda4f4790b5eaefcd699af.tar.xz ice-b2af8a56b56f819683eda4f4790b5eaefcd699af.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1326
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Glacier2/SessionRouterI.cpp | 9 |
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; } } |