aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorMelanie Thielker2009-03-26 01:02:19 +0000
committerMelanie Thielker2009-03-26 01:02:19 +0000
commit8dfe8a0d1d1f34843a8743bdd7e6ccf191fcaa2a (patch)
treeb93a783540c13e9594782465d6647a058712ac45 /OpenSim/Region/ScriptEngine
parent* Appearance patches suite: These patches are applied to allow libomv bots to... (diff)
downloadopensim-SC_OLD-8dfe8a0d1d1f34843a8743bdd7e6ccf191fcaa2a.zip
opensim-SC_OLD-8dfe8a0d1d1f34843a8743bdd7e6ccf191fcaa2a.tar.gz
opensim-SC_OLD-8dfe8a0d1d1f34843a8743bdd7e6ccf191fcaa2a.tar.bz2
opensim-SC_OLD-8dfe8a0d1d1f34843a8743bdd7e6ccf191fcaa2a.tar.xz
Make the error messages passed to RegionReady more descriptive
Patch by antont, thank you. Fixes Mantis #3338
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index b725f58..0431d90 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -494,8 +494,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
494 494
495 UUID assetID = item.AssetID; 495 UUID assetID = item.AssetID;
496 496
497// m_log.DebugFormat("[XEngine] Compiling script {0} ({1})", 497 //m_log.DebugFormat("[XEngine] Compiling script {0} ({1} on object {2})",
498// item.Name, itemID.ToString()); 498 // item.Name, itemID.ToString(), part.ParentGroup.RootPart.Name);
499 499
500 ScenePresence presence = m_Scene.GetScenePresence(item.OwnerID); 500 ScenePresence presence = m_Scene.GetScenePresence(item.OwnerID);
501 501
@@ -559,7 +559,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
559 try 559 try
560 { 560 {
561 // DISPLAY ERROR INWORLD 561 // DISPLAY ERROR INWORLD
562 m_ScriptErrorMessage += "Failed to compile: " + e.Message.ToString(); 562 m_ScriptErrorMessage += "Failed to compile script in object: '" + part.ParentGroup.RootPart.Name + "' Script name: '" + item.Name + "' Error message: " + e.Message.ToString();
563
563 m_ScriptFailCount++; 564 m_ScriptFailCount++;
564 string text = "Error compiling script:\n" + e.Message.ToString(); 565 string text = "Error compiling script:\n" + e.Message.ToString();
565 if (text.Length > 1000) 566 if (text.Length > 1000)