fix windows error reporting
This commit is contained in:
parent
614f14eb0a
commit
e4be699c66
@ -44,7 +44,7 @@ Plugin::Plugin(const char* path) {
|
|||||||
std::cerr << "PLG opening '" << path << "' failed";
|
std::cerr << "PLG opening '" << path << "' failed";
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
// TODO: windows error reporting
|
// TODO: windows error reporting
|
||||||
std::cerr << ": " << GetLastError() << ";
|
std::cerr << ": '" << GetLastError() << "'";
|
||||||
#else
|
#else
|
||||||
const auto* error = dlerror();
|
const auto* error = dlerror();
|
||||||
if (error != nullptr) {
|
if (error != nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user