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