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/IceGrid/FileUserAccountMapperI.cpp | |
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/IceGrid/FileUserAccountMapperI.cpp')
-rw-r--r-- | cpp/src/IceGrid/FileUserAccountMapperI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/FileUserAccountMapperI.cpp b/cpp/src/IceGrid/FileUserAccountMapperI.cpp index e5df2898d78..8e7a0084d29 100644 --- a/cpp/src/IceGrid/FileUserAccountMapperI.cpp +++ b/cpp/src/IceGrid/FileUserAccountMapperI.cpp @@ -7,7 +7,7 @@ // // ********************************************************************** -#include <IceUtil/DisableWarnings.h> +#include <IceUtil/StringUtil.h> #include <IceUtil/FileUtil.h> #include <IceGrid/FileUserAccountMapperI.h> #include <fstream> @@ -20,7 +20,7 @@ FileUserAccountMapperI::FileUserAccountMapperI(const string& filename) ifstream file(IceUtilInternal::streamFilename(filename).c_str()); // filename is a UTF-8 string if(!file) { - throw runtime_error("cannot open `" + filename + "' for reading: " + strerror(errno)); + throw runtime_error("cannot open `" + filename + "' for reading: " + IceUtilInternal::errorToString(errno)); } const string delim = " \t\r\n"; |