diff --git a/src/Mods/Loader.cpp b/src/Mods/Loader.cpp index 49f2232..06fbbbf 100644 --- a/src/Mods/Loader.cpp +++ b/src/Mods/Loader.cpp @@ -9,7 +9,7 @@ namespace vl::mod { std::size_t ModLoader::loadModule(const std::string& path, const Context& ctx, bool isGlobal) { void* handle = LoadLibrary(path, isGlobal); - if (!handle) throw std::runtime_error(std::string("dlopen failed: ") + dlerror()); + if (!handle) throw std::runtime_error(std::string("dlopen failed: ")); handles_.push_back(handle); const std::size_t before = Registry::all().size();