diff options
author | Oren Hurvitz | 2011-05-25 18:45:10 +0300 |
---|---|---|
committer | Diva Canto | 2011-06-07 20:17:49 -0700 |
commit | 39323055bd205ba2bc241e3c52313d2aa4717dfe (patch) | |
tree | 5742dc621ea9bfc0dca0b56eb1450f5c40c4117b | |
parent | Added error message to help understand http://opensimulator.org/mantis/view.p... (diff) | |
download | opensim-SC-39323055bd205ba2bc241e3c52313d2aa4717dfe.zip opensim-SC-39323055bd205ba2bc241e3c52313d2aa4717dfe.tar.gz opensim-SC-39323055bd205ba2bc241e3c52313d2aa4717dfe.tar.bz2 opensim-SC-39323055bd205ba2bc241e3c52313d2aa4717dfe.tar.xz |
When a plugin fails to load because a DLL is missing, log which DLL it is
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Base/ServerUtils.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs index 6743a2e..8effdd2 100644 --- a/OpenSim/Server/Base/ServerUtils.cs +++ b/OpenSim/Server/Base/ServerUtils.cs | |||
@@ -128,6 +128,13 @@ namespace OpenSim.Server.Base | |||
128 | 128 | ||
129 | return null; | 129 | return null; |
130 | } | 130 | } |
131 | catch (ReflectionTypeLoadException rtle) | ||
132 | { | ||
133 | m_log.Error(string.Format("Error loading plugin from {0}:\n{1}", dllName, | ||
134 | String.Join("\n", Array.ConvertAll(rtle.LoaderExceptions, e => e.ToString()))), | ||
135 | rtle); | ||
136 | return null; | ||
137 | } | ||
131 | catch (Exception e) | 138 | catch (Exception e) |
132 | { | 139 | { |
133 | m_log.Error(string.Format("Error loading plugin from {0}", dllName), e); | 140 | m_log.Error(string.Format("Error loading plugin from {0}", dllName), e); |