diff options
Diffstat (limited to '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; |