# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1335186670 -3600
# Node ID 105423f77d46b42b23ac3772e85b806680d3dcf5
# Parent  76db5d0a2104692175f95d4057e94d1cf7848a15
modulemanager: Report errors that happen when loading a shared module onto its original host

diff -r 76db5d0a2104 -r 105423f77d46 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