Mantis 1357 Patch - Thanks mikem!
parent
bdc792d319
commit
336c761ba0
|
@ -296,18 +296,22 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||||
{
|
{
|
||||||
// Send inner exception
|
// Send inner exception
|
||||||
string[] lines=e.InnerException.ToString().Replace("\r", "").Split('\n');
|
string[] lines=e.InnerException.ToString().Replace("\r", "").Split('\n');
|
||||||
int line=0;
|
string line = " (unknown line)";
|
||||||
foreach (string t in lines)
|
foreach (string t in lines)
|
||||||
{
|
{
|
||||||
int idx=t.IndexOf("SecondLife.Script.");
|
int idx=t.IndexOf("SecondLife.Script.");
|
||||||
if (idx != -1)
|
if (idx != -1)
|
||||||
{
|
{
|
||||||
int colon=t.IndexOf(":");
|
int colon=t.IndexOf(":");
|
||||||
line=Convert.ToInt32(t.Substring(colon+1));
|
|
||||||
break;
|
if(-1 != colon)
|
||||||
|
{
|
||||||
|
line = " at line " + Convert.ToInt32(t.Substring(colon + 1)).ToString();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text += e.InnerException.Message.ToString()+" in line "+line.ToString();
|
text += e.InnerException.Message.ToString() + line;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue