From 8fdeab57b14f1a901e36a5255304a8bfc1555051 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 19 Jan 2008 02:58:19 +0000 Subject: * Potential fix to the 'can't run a script anymore bug' --- .../Common/ScriptEngineBase/EventQueueManager.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs index ced4863..949d5b6 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs @@ -108,6 +108,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase /// /// Structure to hold data for llDetect* commands /// + [Serializable] public struct Queue_llDetectParams_Struct { // More or less just a placeholder for the actual moving of additional data @@ -238,17 +239,17 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase { // DISPLAY ERROR INWORLD string text = "Error executing script function \"" + QIS.functionName + "\":\r\n"; - //if (e.InnerException != null) - //{ + if (e.InnerException != null) + { // Send inner exception text += e.InnerException.Message.ToString(); - //} - //else - //{ + } + else + { text += "\r\n"; // Send normal text += e.Message.ToString(); - //} + } try { if (text.Length > 1500) -- cgit v1.1