* 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
0.6.3-post-fixes
Justin Clarke Casey 2009-02-06 19:12:04 +00:00
parent 00a3cbd6fa
commit 84659396b8
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}
}