Merge pull request #4038 from sersoftin/fix/win-shared-library-error-text

Fixed Poco::format specifier for error code
This commit is contained in:
Günter Obiltschnig 2023-05-21 09:43:52 +02:00 committed by GitHub
commit a9ad113742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ void SharedLibraryImpl::loadImpl(const std::string& path, int /*flags*/)
{
DWORD errn = Error::last();
std::string err;
Poco::format(err, "Error %ul while loading [%s]: [%s]", errn, path, Poco::trim(Error::getMessage(errn)));
Poco::format(err, "Error %lu while loading [%s]: [%s]", errn, path, Poco::trim(Error::getMessage(errn)));
throw LibraryLoadException(err);
}
_path = path;