mirror of
https://github.com/opensim/opensim.git
synced 2026-08-15 18:16:18 +08:00
Add friendly error messages to both engines.
This commit is contained in:
@@ -53,6 +53,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
public int StartParam;
|
||||
public AppDomain AppDomain;
|
||||
public Dictionary<string, IScriptApi> Apis;
|
||||
public Dictionary<KeyValuePair<int,int>, KeyValuePair<int,int>>
|
||||
LineMap;
|
||||
}
|
||||
|
||||
public class ScriptManager
|
||||
@@ -159,6 +161,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
m_scriptEngine.m_AppDomainManager.LoadScript(
|
||||
CompiledScriptFile, out id.AppDomain);
|
||||
|
||||
id.LineMap = LSLCompiler.LineMap();
|
||||
id.Script = CompiledScript;
|
||||
id.Source = Script;
|
||||
id.StartParam = startParam;
|
||||
@@ -212,7 +215,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
try
|
||||
{
|
||||
// DISPLAY ERROR INWORLD
|
||||
string text = "Error compiling script:\r\n" +
|
||||
string text = "Error compiling script:\n" +
|
||||
e.Message.ToString();
|
||||
if (text.Length > 1100)
|
||||
text = text.Substring(0, 1099);
|
||||
|
||||
Reference in New Issue
Block a user