From 84659396b8e1681f3dbf3e8272c124a0858cef44 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 6 Feb 2009 19:12:04 +0000 Subject: * Make the module loader display which module failed if there was a loading problem * Such failures are now fatal to grab the user's attention. * However, they could be made non-fatal (just with a loud error warning) if this proves too inconvenient --- OpenSim/Region/Framework/ModuleLoader.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/ModuleLoader.cs b/OpenSim/Region/Framework/ModuleLoader.cs index d393919..29b6bf4 100644 --- a/OpenSim/Region/Framework/ModuleLoader.cs +++ b/OpenSim/Region/Framework/ModuleLoader.cs @@ -218,9 +218,13 @@ namespace OpenSim.Region.Framework } } } - catch (ReflectionTypeLoadException) + catch (Exception e) { - m_log.InfoFormat("[MODULES]: Could not load types for [{0}].", pluginAssembly.FullName); + m_log.ErrorFormat( + "[MODULES]: Could not load types for [{0}]. Exception {1}", pluginAssembly.FullName, e); + + // justincc: Right now this is fatal to really get the user's attention + throw e; } } -- cgit v1.1