Add a data path for error messages

Committed from my other box where git is not configured properly

Signed-off-by: Melanie <melanie@t-data.com>
This commit is contained in:
root
2009-12-22 06:25:32 +01:00
committed by Melanie
parent e530180c1e
commit 05e8b4e72c
6 changed files with 57 additions and 14 deletions

View File

@@ -29,6 +29,7 @@ using System;
using System.Xml;
using System.IO;
using System.Collections.Generic;
using System.Collections;
using System.Reflection;
using OpenMetaverse;
using log4net;
@@ -205,6 +206,27 @@ namespace OpenSim.Region.Framework.Scenes
}
}
public ArrayList GetScriptErrors(UUID itemID)
{
ArrayList ret = new ArrayList();
IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
if (engines == null) // No engine at all
return ret;
foreach (IScriptModule e in engines)
{
if (e != null)
{
ArrayList errors = e.GetScriptErrors(itemID);
foreach (Object line in errors)
ret.Add(line);
}
}
return ret;
}
/// <summary>
/// Stop all the scripts in this prim.
/// </summary>