Diff

core/modulemanager.lua @ 4662:105423f77d46

modulemanager: Report errors that happen when loading a shared module onto its original host
author Matthew Wild <mwild1@gmail.com>
date Mon, 23 Apr 2012 14:11:10 +0100
parent 4652:9d24bc503621
child 4665:6be91ca54613
line wrap: on
line diff
--- 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