More error catching/outputting.
parent
05c1ec7faf
commit
5f18a088a8
|
@ -137,11 +137,21 @@ namespace OpenSim.Server.Handlers.Grid
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary<string, object> rinfoData = new Dictionary<string, object>();
|
Dictionary<string, object> rinfoData = new Dictionary<string, object>();
|
||||||
|
GridRegion rinfo = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
foreach (KeyValuePair<string, string> kvp in request)
|
foreach (KeyValuePair<string, string> kvp in request)
|
||||||
rinfoData[kvp.Key] = kvp.Value;
|
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)
|
if (result)
|
||||||
return SuccessResult();
|
return SuccessResult();
|
||||||
|
|
Loading…
Reference in New Issue