diff options
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r-- | cpp/src/Ice/Instance.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp index 1ba733637e6..92c47ef7d20 100644 --- a/cpp/src/Ice/Instance.cpp +++ b/cpp/src/Ice/Instance.cpp @@ -56,7 +56,7 @@ # include <sys/types.h> #endif -#ifdef __linux +#if defined(__linux) || defined(__sun) # include <grp.h> // for initgroups #endif @@ -924,7 +924,8 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi } else { - throw "Unknown user account `" + newUser + "'"; + InitializationException ex(__FILE__, __LINE__, "Unknown user account `" + newUser + "'"); + throw ex; } } |