diff options
author | Adam Johnson | 2008-05-22 12:07:47 +0000 |
---|---|---|
committer | Adam Johnson | 2008-05-22 12:07:47 +0000 |
commit | 336c761ba0915dfd6c397e9e9284222231de3214 (patch) | |
tree | 9ac432b6bca2a0ff4b00afcdfcbb435c989d4cb3 /OpenSim/Region/ScriptEngine | |
parent | here are further enhancements to the IHttpAgentHandler and to BaseHttpServer ... (diff) | |
download | opensim-SC-336c761ba0915dfd6c397e9e9284222231de3214.zip opensim-SC-336c761ba0915dfd6c397e9e9284222231de3214.tar.gz opensim-SC-336c761ba0915dfd6c397e9e9284222231de3214.tar.bz2 opensim-SC-336c761ba0915dfd6c397e9e9284222231de3214.tar.xz |
Mantis 1357 Patch - Thanks mikem!
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs | 12 |
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 | { |