aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
index 30b3e8f..1b1a5fa 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
@@ -295,7 +295,19 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
295 if (e.InnerException != null) 295 if (e.InnerException != null)
296 { 296 {
297 // Send inner exception 297 // Send inner exception
298 text += e.InnerException.Message.ToString(); 298 string[] lines=e.InnerException.ToString().Replace("\r", "").Split('\n');
299 int line=0;
300 foreach(string t in lines)
301 {
302 int idx=t.IndexOf("SecondLife.Script.");
303 if(idx != -1)
304 {
305 int colon=t.IndexOf(":");
306 line=Convert.ToInt32(t.Substring(colon+1));
307 break;
308 }
309 }
310 text += e.InnerException.Message.ToString()+" in line "+line.ToString();
299 } 311 }
300 else 312 else
301 { 313 {