diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-22 01:44:15 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-22 01:44:15 +0200 |
commit | 5d9ad7276cfd9696784595314471416aba691b17 (patch) | |
tree | a7438ac2748648e3f55b4c33f24ea0e80f8b551c /src | |
parent | 1c10438fc37d9b0e9b205f47200b7df3784a225b (diff) |
Proper throws on the plugin subsystem.
Diffstat (limited to 'src')
-rw-r--r-- | src/lua-plugin.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua-plugin.cc b/src/lua-plugin.cc index 3bc7e83..4bf7cd5 100644 --- a/src/lua-plugin.cc +++ b/src/lua-plugin.cc @@ -48,7 +48,7 @@ void LuaLoadPlugin(Handle * h, Lua * L) throw (GeneralException) { HMEMORYMODULE module; if (!(module = MemoryLoadLibrary(buffer))) - throw("Can't load library " + h->GetName() + " from memory."); + throw GeneralException("Can't load library " + h->GetName() + " from memory."); init_ptr_t init_ptr = (init_ptr_t) MemoryGetProcAddress(module, "init_plugin"); @@ -164,7 +164,7 @@ void LuaLoadPlugin(Handle * h, Lua * L) throw (GeneralException) { Base::printm(M_INFO, "Loading library " + h->GetName() + "\n"); if (!handle) - throw("Can't load library " + h->GetName() + " from memory."); + throw GeneralException("Can't load library " + h->GetName() + " from memory."); init_ptr_t init_ptr = (init_ptr_t) dlsym(handle, "init_plugin"); |