aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorAdam Johnson2008-05-22 12:07:47 +0000
committerAdam Johnson2008-05-22 12:07:47 +0000
commit336c761ba0915dfd6c397e9e9284222231de3214 (patch)
tree9ac432b6bca2a0ff4b00afcdfcbb435c989d4cb3 /OpenSim/Region/ScriptEngine
parenthere are further enhancements to the IHttpAgentHandler and to BaseHttpServer ... (diff)
downloadopensim-SC_OLD-336c761ba0915dfd6c397e9e9284222231de3214.zip
opensim-SC_OLD-336c761ba0915dfd6c397e9e9284222231de3214.tar.gz
opensim-SC_OLD-336c761ba0915dfd6c397e9e9284222231de3214.tar.bz2
opensim-SC_OLD-336c761ba0915dfd6c397e9e9284222231de3214.tar.xz
Mantis 1357 Patch - Thanks mikem!
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-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 {