diff options
author | Jose <jose@zeroc.com> | 2018-07-27 13:55:58 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-07-27 13:55:58 +0200 |
commit | 83b85371785bae2928332ac758f2359b724ef420 (patch) | |
tree | de77474c09aeb5c2038286216578bbc628801734 /cpp/src/slice2confluence | |
parent | Fix UWP Build failure (diff) | |
download | ice-83b85371785bae2928332ac758f2359b724ef420.tar.bz2 ice-83b85371785bae2928332ac758f2359b724ef420.tar.xz ice-83b85371785bae2928332ac758f2359b724ef420.zip |
Replace strerror usage with IceUtilInternal::errorToString
Close #154
Diffstat (limited to 'cpp/src/slice2confluence')
-rw-r--r-- | cpp/src/slice2confluence/Gen.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2confluence/Gen.cpp b/cpp/src/slice2confluence/Gen.cpp index 9d054b22272..16629ab5aa5 100644 --- a/cpp/src/slice2confluence/Gen.cpp +++ b/cpp/src/slice2confluence/Gen.cpp @@ -1426,7 +1426,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); @@ -1787,7 +1787,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); @@ -1800,7 +1800,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()); } @@ -1836,7 +1836,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()); } |