If XEngine compile fails, show script name in error message in-world as well as the exception itself
Thanks Luca Peck
prioritization
Justin Clark-Casey (justincc) 2009-10-09 17:43:25 +01:00
parent b6678faf34
commit f1f239758f
1 changed files with 1 additions and 1 deletions

View File

@ -642,7 +642,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
m_ScriptErrorMessage += "Failed to compile script in object: '" + part.ParentGroup.RootPart.Name + "' Script name: '" + item.Name + "' Error message: " + e.Message.ToString(); m_ScriptErrorMessage += "Failed to compile script in object: '" + part.ParentGroup.RootPart.Name + "' Script name: '" + item.Name + "' Error message: " + e.Message.ToString();
m_ScriptFailCount++; m_ScriptFailCount++;
string text = "Error compiling script:\n" + e.Message.ToString(); string text = "Error compiling script '" + item.Name + "':\n" + e.Message.ToString();
if (text.Length > 1000) if (text.Length > 1000)
text = text.Substring(0, 1000); text = text.Substring(0, 1000);
World.SimChat(Utils.StringToBytes(text), World.SimChat(Utils.StringToBytes(text),