summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-07-14 12:47:01 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-07-14 12:47:01 +0000
commit3bcbeda49ab17dad01bb27beecad1ecb893dbbf5 (patch)
tree10105f7576af57164422bfc229eb666e0392d18b /cpp/src
parentfix up a typo and an unreachable code error under mono (diff)
downloadice-3bcbeda49ab17dad01bb27beecad1ecb893dbbf5.tar.bz2
ice-3bcbeda49ab17dad01bb27beecad1ecb893dbbf5.tar.xz
ice-3bcbeda49ab17dad01bb27beecad1ecb893dbbf5.zip
Fix bug with slicing test.
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/Network.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index b0a9b94f1b0..7e17515ef8b 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -1015,6 +1015,12 @@ IceInternal::errorToString(int error)
LocalFree(lpMsgBuf);
return result;
}
+ else
+ {
+ ostringstream os;
+ os << "unknown error: " << error;
+ return os.str();
+ }
}
switch(error)
@@ -1173,7 +1179,11 @@ IceInternal::errorToString(int error)
return "WSANO_DATA";
default:
- return "unknown socket error";
+ {
+ ostringstream os;
+ os << "unknown socket error: " << error;
+ return os.str();
+ }
}
}