aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
diff options
context:
space:
mode:
authorTedd Hansen2007-08-25 21:35:03 +0000
committerTedd Hansen2007-08-25 21:35:03 +0000
commitd9b9b1651367de4432b22282b21b1b69c1a23141 (patch)
treeb861c6a274814018c11b71ac0336149558d553d6 /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
parentApplied dalien's libsl login patch (should now allow libsl clients to once ag... (diff)
downloadopensim-SC-d9b9b1651367de4432b22282b21b1b69c1a23141.zip
opensim-SC-d9b9b1651367de4432b22282b21b1b69c1a23141.tar.gz
opensim-SC-d9b9b1651367de4432b22282b21b1b69c1a23141.tar.bz2
opensim-SC-d9b9b1651367de4432b22282b21b1b69c1a23141.tar.xz
Script compiler should now show error on correct line number in original LSL-script.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
index bdeed8f..a700489 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
@@ -87,6 +87,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
87 //parameters.ReferencedAssemblies.Add("OpenSim.Region.Environment"); 87 //parameters.ReferencedAssemblies.Add("OpenSim.Region.Environment");
88 parameters.GenerateExecutable = false; 88 parameters.GenerateExecutable = false;
89 parameters.OutputAssembly = OutFile; 89 parameters.OutputAssembly = OutFile;
90 //parameters.IncludeDebugInformation = false;
90 CompilerResults results = codeProvider.CompileAssemblyFromSource(parameters, Script); 91 CompilerResults results = codeProvider.CompileAssemblyFromSource(parameters, Script);
91 92
92 // Go through errors 93 // Go through errors
@@ -97,7 +98,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
97 string errtext = ""; 98 string errtext = "";
98 foreach (CompilerError CompErr in results.Errors) 99 foreach (CompilerError CompErr in results.Errors)
99 { 100 {
100 errtext += "Line number " + CompErr.Line + 101 errtext += "Line number " + (CompErr.Line - 1) +
101 ", Error Number: " + CompErr.ErrorNumber + 102 ", Error Number: " + CompErr.ErrorNumber +
102 ", '" + CompErr.ErrorText + "'\r\n"; 103 ", '" + CompErr.ErrorText + "'\r\n";
103 } 104 }