summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Exception.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-05-13 21:40:25 +0000
committerMark Spruiell <mes@zeroc.com>2002-05-13 21:40:25 +0000
commit347dd861fcf34b28657c0d93ee95c4493ac08a0f (patch)
tree496ac79a9d11aa30a7d6f416db76be058ca1571e /cpp/src/Ice/Exception.cpp
parentFixes (diff)
downloadice-347dd861fcf34b28657c0d93ee95c4493ac08a0f.tar.bz2
ice-347dd861fcf34b28657c0d93ee95c4493ac08a0f.tar.xz
ice-347dd861fcf34b28657c0d93ee95c4493ac08a0f.zip
skip error string if error code == 0
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r--cpp/src/Ice/Exception.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index 40256b54c27..55280eb7d14 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -127,7 +127,10 @@ void
Ice::SystemException::ice_print(ostream& out) const
{
Exception::ice_print(out);
- out << ":\nsystem exception: " << errorToString(error);
+ if (error != 0)
+ {
+ out << ":\nsystem exception: " << errorToString(error);
+ }
}
void