summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/LocalException.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-08-23 20:50:55 +0000
committerMarc Laukien <marc@zeroc.com>2001-08-23 20:50:55 +0000
commit5191b8f95031ad12fb12b6ac56c53e51c1bb8681 (patch)
tree577f44e1ceda4a60ad686d96f1cd5c922e32b616 /cpp/src/Ice/LocalException.cpp
parentfix (diff)
downloadice-5191b8f95031ad12fb12b6ac56c53e51c1bb8681.tar.bz2
ice-5191b8f95031ad12fb12b6ac56c53e51c1bb8681.tar.xz
ice-5191b8f95031ad12fb12b6ac56c53e51c1bb8681.zip
added missing config files; better error messages
Diffstat (limited to 'cpp/src/Ice/LocalException.cpp')
-rw-r--r--cpp/src/Ice/LocalException.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Ice/LocalException.cpp b/cpp/src/Ice/LocalException.cpp
index 2a63fa5f75a..b8e2b1a62c8 100644
--- a/cpp/src/Ice/LocalException.cpp
+++ b/cpp/src/Ice/LocalException.cpp
@@ -513,7 +513,7 @@ Ice::SystemException::SystemException(const char* file, int line) :
LocalException(file, line)
{
#ifdef WIN32
- _error = WSAGetLastError();
+ _error = GetLastError();
#else
_error = errno;
#endif
@@ -559,6 +559,13 @@ Ice::SystemException::raise() const
Ice::SocketException::SocketException(const char* file, int line) :
SystemException(file, line)
{
+#ifdef WIN32
+ //
+ // Overwrite _error, which has been set by GetLastError() in the
+ // SystemException constructor, with WSAGetLastError()
+ //
+ _error = WSAGetLastError();
+#endif
}
Ice::SocketException::SocketException(const SocketException& ex) :