diff options
author | root | 2009-12-22 06:25:32 +0100 |
---|---|---|
committer | root | 2009-12-22 06:25:32 +0100 |
commit | b53b87166940ca0fca4ae2190649e18102c886ec (patch) | |
tree | e0f1a21532f3883e032c1b6a7158a725ccd4319c /OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |
parent | Should not commit without compiling (diff) | |
download | opensim-SC-b53b87166940ca0fca4ae2190649e18102c886ec.zip opensim-SC-b53b87166940ca0fca4ae2190649e18102c886ec.tar.gz opensim-SC-b53b87166940ca0fca4ae2190649e18102c886ec.tar.bz2 opensim-SC-b53b87166940ca0fca4ae2190649e18102c886ec.tar.xz |
Add a data path for error messages
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 cdd23bd..c3c6342 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; |
@@ -210,6 +211,27 @@ namespace OpenSim.Region.Framework.Scenes | |||
210 | } | 211 | } |
211 | } | 212 | } |
212 | 213 | ||
214 | public ArrayList GetScriptErrors(UUID itemID) | ||
215 | { | ||
216 | ArrayList ret = new ArrayList(); | ||
217 | |||
218 | IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>(); | ||
219 | if (engines == null) // No engine at all | ||
220 | return ret; | ||
221 | |||
222 | foreach (IScriptModule e in engines) | ||
223 | { | ||
224 | if (e != null) | ||
225 | { | ||
226 | ArrayList errors = e.GetScriptErrors(itemID); | ||
227 | foreach (Object line in errors) | ||
228 | ret.Add(line); | ||
229 | } | ||
230 | } | ||
231 | |||
232 | return ret; | ||
233 | } | ||
234 | |||
213 | /// <summary> | 235 | /// <summary> |
214 | /// Stop all the scripts in this prim. | 236 | /// Stop all the scripts in this prim. |
215 | /// </summary> | 237 | /// </summary> |