replace strerror() with Poco::Error::getMessage()

This commit is contained in:
Guenter Obiltschnig 2017-11-09 11:35:17 +01:00
parent 0f28c27e98
commit 58469d4943

View File

@ -15,6 +15,7 @@
#include "Poco/File_UNIX.h" #include "Poco/File_UNIX.h"
#include "Poco/Buffer.h" #include "Poco/Buffer.h"
#include "Poco/Exception.h" #include "Poco/Exception.h"
#include "Poco/Error.h"
#include <algorithm> #include <algorithm>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
@ -526,7 +527,7 @@ void FileImpl::handleLastErrorImpl(const std::string& path)
case EMFILE: case EMFILE:
throw FileException("too many open files", path, errno); throw FileException("too many open files", path, errno);
default: default:
throw FileException(std::strerror(errno), path, errno); throw FileException(Error::getMessage(errno), path, errno);
} }
} }