summaryrefslogtreecommitdiff
path: root/cpp/src/slice2html
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2html')
-rw-r--r--cpp/src/slice2html/Gen.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/src/slice2html/Gen.cpp b/cpp/src/slice2html/Gen.cpp
index 17340acd502..3a4f1e54314 100644
--- a/cpp/src/slice2html/Gen.cpp
+++ b/cpp/src/slice2html/Gen.cpp
@@ -7,7 +7,6 @@
//
// **********************************************************************
-#include <IceUtil/DisableWarnings.h>
#include <IceUtil/Functional.h>
#include <IceUtil/StringUtil.h>
#include <IceUtil/FileUtil.h>
@@ -1254,7 +1253,7 @@ Slice::GeneratorBase::openStream(const string& path)
if(!_out.isOpen())
{
ostringstream os;
- os << "cannot open file `" << path << "': " << strerror(errno);
+ os << "cannot open file `" << path << "': " << IceUtilInternal::errorToString(errno);
throw FileException(__FILE__, __LINE__, os.str());
}
FileTracker::instance()->addFile(path);
@@ -1575,7 +1574,7 @@ Slice::GeneratorBase::makeDir(const string& dir)
if(IceUtilInternal::mkdir(dir, 0777) != 0)
{
ostringstream os;
- os << "cannot create directory `" << dir << "': " << strerror(errno);
+ os << "cannot create directory `" << dir << "': " << IceUtilInternal::errorToString(errno);
throw FileException(__FILE__, __LINE__, os.str());
}
FileTracker::instance()->addDirectory(dir);
@@ -1588,7 +1587,7 @@ Slice::GeneratorBase::readFile(const string& file)
if(!in)
{
ostringstream os;
- os << "cannot open file `" << file << "': " << strerror(errno);
+ os << "cannot open file `" << file << "': " << IceUtilInternal::errorToString(errno);
throw FileException(__FILE__, __LINE__, os.str());
}
@@ -1662,7 +1661,7 @@ Slice::GeneratorBase::readFile(const string& file, string& part1, string& part2)
if(!in)
{
ostringstream os;
- os << "cannot open file `" << file << "': " << strerror(errno);
+ os << "cannot open file `" << file << "': " << IceUtilInternal::errorToString(errno);
throw FileException(__FILE__, __LINE__, os.str());
}