mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-23 10:36:37 +01:00
replace strerror() with Poco::Error::getMessage()
This commit is contained in:
parent
0f28c27e98
commit
58469d4943
@ -15,6 +15,7 @@
|
||||
#include "Poco/File_UNIX.h"
|
||||
#include "Poco/Buffer.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include "Poco/Error.h"
|
||||
#include <algorithm>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
@ -526,7 +527,7 @@ void FileImpl::handleLastErrorImpl(const std::string& path)
|
||||
case EMFILE:
|
||||
throw FileException("too many open files", path, errno);
|
||||
default:
|
||||
throw FileException(std::strerror(errno), path, errno);
|
||||
throw FileException(Error::getMessage(errno), path, errno);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user