diff options
author | Justin Clark-Casey (justincc) | 2010-03-03 18:28:30 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-03-03 18:28:30 +0000 |
commit | 296c68a9de2d8253bdb88c67529619398d8ec6c9 (patch) | |
tree | bad42d434472cc9d0c08636c2ba51c25408a98df /OpenSim/Services/Friends/FriendsServiceBase.cs | |
parent | Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-296c68a9de2d8253bdb88c67529619398d8ec6c9.zip opensim-SC_OLD-296c68a9de2d8253bdb88c67529619398d8ec6c9.tar.gz opensim-SC_OLD-296c68a9de2d8253bdb88c67529619398d8ec6c9.tar.bz2 opensim-SC_OLD-296c68a9de2d8253bdb88c67529619398d8ec6c9.tar.xz |
Make the service loader pump out the error to the log (in red) and include the dll/interface/args that caused the problem
This gives people more of a fighting chance of finding out what went wrong
Diffstat (limited to 'OpenSim/Services/Friends/FriendsServiceBase.cs')
-rw-r--r-- | OpenSim/Services/Friends/FriendsServiceBase.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Services/Friends/FriendsServiceBase.cs b/OpenSim/Services/Friends/FriendsServiceBase.cs index 9858972..6ab0bff 100644 --- a/OpenSim/Services/Friends/FriendsServiceBase.cs +++ b/OpenSim/Services/Friends/FriendsServiceBase.cs | |||
@@ -27,13 +27,12 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Reflection; | 29 | using System.Reflection; |
30 | using log4net; | ||
30 | using Nini.Config; | 31 | using Nini.Config; |
31 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
32 | using OpenSim.Data; | 33 | using OpenSim.Data; |
33 | using OpenSim.Services.Interfaces; | 34 | using OpenSim.Services.Interfaces; |
34 | using OpenSim.Services.Base; | 35 | using OpenSim.Services.Base; |
35 | using Nini.Config; | ||
36 | using log4net; | ||
37 | 36 | ||
38 | namespace OpenSim.Services.Friends | 37 | namespace OpenSim.Services.Friends |
39 | { | 38 | { |
@@ -80,7 +79,11 @@ namespace OpenSim.Services.Friends | |||
80 | 79 | ||
81 | m_Database = LoadPlugin<IFriendsData>(dllName, new Object[] { connString, realm }); | 80 | m_Database = LoadPlugin<IFriendsData>(dllName, new Object[] { connString, realm }); |
82 | if (m_Database == null) | 81 | if (m_Database == null) |
83 | throw new Exception("Could not find a storage interface in the given module"); | 82 | { |
83 | throw new Exception( | ||
84 | string.Format( | ||
85 | "Could not find a storage interface {0} in the given StorageProvider {1}", "IFriendsData", dllName)); | ||
86 | } | ||
84 | } | 87 | } |
85 | } | 88 | } |
86 | } | 89 | } |