modulemanager: Report errors that happen when loading a shared module onto its original host
authorMatthew Wild <mwild1@gmail.com>
Mon, 23 Apr 2012 14:11:10 +0100
changeset 4662 105423f77d46
parent 4661 76db5d0a2104
child 4663 24524d70a50a
modulemanager: Report errors that happen when loading a shared module onto its original host
core/modulemanager.lua
--- a/core/modulemanager.lua	Mon Apr 23 14:10:04 2012 +0100
+++ b/core/modulemanager.lua	Mon Apr 23 14:11:10 2012 +0100
@@ -186,7 +186,7 @@
 			end
 			if host ~= api_instance.host and module_has_method(pluginenv, "add_host") then
 				-- Now load the module again onto the host it was originally being loaded on
-				do_load_module(host, module_name);
+				ok, err = do_load_module(host, module_name);
 			end
 		end
 	end