diff options
author | root | 2009-12-22 06:25:32 +0100 |
---|---|---|
committer | Melanie | 2009-12-22 04:55:43 +0000 |
commit | 05e8b4e72c440e19c54fbcb17e2120834a27c3ab (patch) | |
tree | 70103466881cedae8c63de87b8747ccaba58f7a2 /OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |
parent | Glue code for a couple of new LSL function implementations (diff) | |
download | opensim-SC-05e8b4e72c440e19c54fbcb17e2120834a27c3ab.zip opensim-SC-05e8b4e72c440e19c54fbcb17e2120834a27c3ab.tar.gz opensim-SC-05e8b4e72c440e19c54fbcb17e2120834a27c3ab.tar.bz2 opensim-SC-05e8b4e72c440e19c54fbcb17e2120834a27c3ab.tar.xz |
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>
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index b98747a..eb7f5ff 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.Xml; | 29 | using System.Xml; |
30 | using System.IO; | 30 | using System.IO; |
31 | using System.Collections.Generic; | 31 | using System.Collections.Generic; |
32 | using System.Collections; | ||
32 | using System.Reflection; | 33 | using System.Reflection; |
33 | using OpenMetaverse; | 34 | using OpenMetaverse; |
34 | using log4net; | 35 | using log4net; |
@@ -205,6 +206,27 @@ namespace OpenSim.Region.Framework.Scenes | |||
205 | } | 206 | } |
206 | } | 207 | } |
207 | 208 | ||
209 | public ArrayList GetScriptErrors(UUID itemID) | ||
210 | { | ||
211 | ArrayList ret = new ArrayList(); | ||
212 | |||
213 | IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>(); | ||
214 | if (engines == null) // No engine at all | ||
215 | return ret; | ||
216 | |||
217 | foreach (IScriptModule e in engines) | ||
218 | { | ||
219 | if (e != null) | ||
220 | { | ||
221 | ArrayList errors = e.GetScriptErrors(itemID); | ||
222 | foreach (Object line in errors) | ||
223 | ret.Add(line); | ||
224 | } | ||
225 | } | ||
226 | |||
227 | return ret; | ||
228 | } | ||
229 | |||
208 | /// <summary> | 230 | /// <summary> |
209 | /// Stop all the scripts in this prim. | 231 | /// Stop all the scripts in this prim. |
210 | /// </summary> | 232 | /// </summary> |