diff options
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r-- | cpp/src/Ice/Exception.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp index 177eb58e8a0..f3022d2880a 100644 --- a/cpp/src/Ice/Exception.cpp +++ b/cpp/src/Ice/Exception.cpp @@ -35,8 +35,18 @@ socketErrorToString(int error) return "unknown error"; } #ifdef ICE_OS_WINRT - return IceUtil::wstringToString( - static_cast<Windows::Networking::Sockets::SocketErrorStatus>(error).ToString()->Data()); + if(error == E_ACCESSDENIED) + { + ostringstream os; + os << "access to a resource or feature is denied, ensure that you have requested the appropriate\n"; + os << "capability and made the required declarations in the package manifest of your app."; + return os.str(); + } + else + { + return IceUtil::wstringToString( + static_cast<Windows::Networking::Sockets::SocketErrorStatus>(error).ToString()->Data()); + } #else return IceUtilInternal::errorToString(error); #endif |