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/slice2matlab/Main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpp/src/slice2matlab/Main.cpp') diff --git a/cpp/src/slice2matlab/Main.cpp b/cpp/src/slice2matlab/Main.cpp index e2ed4c7a072..6704faa27d7 100644 --- a/cpp/src/slice2matlab/Main.cpp +++ b/cpp/src/slice2matlab/Main.cpp @@ -7,7 +7,6 @@ // // ********************************************************************** -#include #include #include #include @@ -277,7 +276,7 @@ openClass(const string& abs, const string& dir, IceUtilInternal::Output& out) 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); -- cgit v1.2.3