When a plugin fails to load because a DLL is missing, log which DLL it is

bulletsim
Oren Hurvitz 2011-05-25 18:45:10 +03:00 committed by Diva Canto
parent eabfc9ca15
commit 39323055bd
1 changed files with 7 additions and 0 deletions

View File

@ -128,6 +128,13 @@ namespace OpenSim.Server.Base
return null;
}
catch (ReflectionTypeLoadException rtle)
{
m_log.Error(string.Format("Error loading plugin from {0}:\n{1}", dllName,
String.Join("\n", Array.ConvertAll(rtle.LoaderExceptions, e => e.ToString()))),
rtle);
return null;
}
catch (Exception e)
{
m_log.Error(string.Format("Error loading plugin from {0}", dllName), e);