Mantis #6552 -- stricter error (crash) if server URL is malformed.

user_profiles
Diva Canto 2013-02-25 16:27:41 -08:00
parent 66c5934d90
commit 00da59ae52
1 changed files with 2 additions and 5 deletions

View File

@ -74,11 +74,8 @@ namespace OpenSim.Groups
{
IConfig groupsConfig = config.Configs["Groups"];
string url = groupsConfig.GetString("GroupsServerURI", string.Empty);
if (url == string.Empty)
{
m_log.WarnFormat("[Groups.RemoteConnector]: Groups server URL not provided. Groups will not work.");
return;
}
if (!Uri.IsWellFormedUriString(url, UriKind.Absolute))
throw new Exception(string.Format("[Groups.RemoteConnector]: Malformed groups server URL {0}. Fix it or disable the Groups feature.", url));
m_GroupsService = new GroupsServiceRemoteConnector(url);
m_Scenes = new List<Scene>();