fix windows error reporting

This commit is contained in:
Green Sky 2023-07-25 15:37:31 +02:00
parent 614f14eb0a
commit e4be699c66
No known key found for this signature in database

View File

@ -44,7 +44,7 @@ Plugin::Plugin(const char* path) {
std::cerr << "PLG opening '" << path << "' failed";
#if defined(_WIN32) || defined(_WIN64)
// TODO: windows error reporting
std::cerr << ": " << GetLastError() << ";
std::cerr << ": '" << GetLastError() << "'";
#else
const auto* error = dlerror();
if (error != nullptr) {