diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-02-14 08:44:52 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-02-14 08:44:52 +0000 |
commit | c1a23a0e331c93fb65f3c395101b0550922ebdc6 (patch) | |
tree | 24bb47ca3135abb7eecee51c7e442ce384810355 /cpp/src/Ice/Exception.cpp | |
parent | added vista fix. (diff) | |
download | ice-c1a23a0e331c93fb65f3c395101b0550922ebdc6.tar.bz2 ice-c1a23a0e331c93fb65f3c395101b0550922ebdc6.tar.xz ice-c1a23a0e331c93fb65f3c395101b0550922ebdc6.zip |
Fix
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r-- | cpp/src/Ice/Exception.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp index 3141a604d3e..659875a3725 100644 --- a/cpp/src/Ice/Exception.cpp +++ b/cpp/src/Ice/Exception.cpp @@ -250,7 +250,15 @@ void Ice::FileException::ice_print(ostream& out) const { Exception::ice_print(out); - out << ":\nfile exception: " << errorToString(error); + out << ":\nfile exception: "; + if(error == 0) + { + out << "couldn't open file"; + } + else + { + out << errorToString(error); + } if(!path.empty()) { out << "\npath: " << path; |