From 83b85371785bae2928332ac758f2359b724ef420 Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 27 Jul 2018 13:55:58 +0200 Subject: Replace strerror usage with IceUtilInternal::errorToString Close #154 --- cpp/src/Slice/JavaUtil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/Slice/JavaUtil.cpp') diff --git a/cpp/src/Slice/JavaUtil.cpp b/cpp/src/Slice/JavaUtil.cpp index dce07e4689b..094f2fd373a 100644 --- a/cpp/src/Slice/JavaUtil.cpp +++ b/cpp/src/Slice/JavaUtil.cpp @@ -7,7 +7,7 @@ // // ********************************************************************** -#include +#include #include #include #include @@ -740,7 +740,7 @@ Slice::JavaOutput::openClass(const string& cls, const string& prefix, const stri if(IceUtilInternal::mkdir(path, 0777) != 0) { ostringstream os; - os << "cannot create directory `" << path << "': " << strerror(errno); + os << "cannot create directory `" << path << "': " << IceUtilInternal::errorToString(errno); throw FileException(__FILE__, __LINE__, os.str()); } FileTracker::instance()->addDirectory(path); @@ -779,7 +779,7 @@ Slice::JavaOutput::openClass(const string& cls, const string& prefix, const stri else { ostringstream os; - os << "cannot open file `" << path << "': " << strerror(errno); + os << "cannot open file `" << path << "': " << IceUtilInternal::errorToString(errno); throw FileException(__FILE__, __LINE__, os.str()); } } -- cgit v1.2.3