diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-05-13 21:40:25 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-05-13 21:40:25 +0000 |
commit | 347dd861fcf34b28657c0d93ee95c4493ac08a0f (patch) | |
tree | 496ac79a9d11aa30a7d6f416db76be058ca1571e /cpp | |
parent | Fixes (diff) | |
download | ice-347dd861fcf34b28657c0d93ee95c4493ac08a0f.tar.bz2 ice-347dd861fcf34b28657c0d93ee95c4493ac08a0f.tar.xz ice-347dd861fcf34b28657c0d93ee95c4493ac08a0f.zip |
skip error string if error code == 0
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/Ice/Exception.cpp | 5 |
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 |