Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user