From adbc6ee084567a2fe6a696b7f67c80000e517ff8 Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Tue, 15 Jun 2004 06:33:57 +0000 Subject: - Added isOpen() method to OutputUtil. - Removed calls to strerror(errno) in slice2cpp and slice2cs because the std::fstream operations do not set errno when something goes wrong, so any error messages always showed "no error" at the end. - Added support for --impl option to slice2cs. - Found two places in slice2java where exceptions where exception handlers were not ordered into derived-to-base order. --- cpp/src/Slice/Preprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/Slice/Preprocessor.cpp') diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 7e97ac6e73a..b88f2e53d11 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -184,7 +184,7 @@ Slice::Preprocessor::checkInputFile() ifstream test(_fileName.c_str()); if(!test) { - cerr << _path << ": can't open `" << _fileName << "' for reading: " << strerror(errno) << endl; + cerr << _path << ": can't open `" << _fileName << "' for reading" << endl; return false; } test.close(); -- cgit v1.2.3