From c1a23a0e331c93fb65f3c395101b0550922ebdc6 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Wed, 14 Feb 2007 08:44:52 +0000 Subject: Fix --- cpp/src/Ice/Exception.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'cpp/src') 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; -- cgit v1.2.3