From 39323055bd205ba2bc241e3c52313d2aa4717dfe Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Wed, 25 May 2011 18:45:10 +0300 Subject: [PATCH] When a plugin fails to load because a DLL is missing, log which DLL it is --- OpenSim/Server/Base/ServerUtils.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs index 6743a2e7c8..8effdd2d1b 100644 --- a/OpenSim/Server/Base/ServerUtils.cs +++ b/OpenSim/Server/Base/ServerUtils.cs @@ -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);