More error catching/outputting.

prioritization
Diva Canto 2009-10-05 11:14:46 -07:00
parent 05c1ec7faf
commit 5f18a088a8
1 changed files with 14 additions and 4 deletions

View File

@ -137,11 +137,21 @@ namespace OpenSim.Server.Handlers.Grid
}
Dictionary<string, object> rinfoData = new Dictionary<string, object>();
GridRegion rinfo = null;
try
{
foreach (KeyValuePair<string, string> kvp in request)
rinfoData[kvp.Key] = kvp.Value;
GridRegion rinfo = new GridRegion(rinfoData);
rinfo = new GridRegion(rinfoData);
}
catch (Exception e)
{
m_log.DebugFormat("[GRID HANDLER]: exception unpacking region data: {0}", e);
}
bool result = m_GridService.RegisterRegion(scopeID, rinfo);
bool result = false;
if (rinfo != null)
m_GridService.RegisterRegion(scopeID, rinfo);
if (result)
return SuccessResult();