aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
index f24eb63..bdeed8f 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
@@ -93,12 +93,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
93 // TODO: Return errors to user somehow 93 // TODO: Return errors to user somehow
94 if (results.Errors.Count > 0) 94 if (results.Errors.Count > 0)
95 { 95 {
96
97 string errtext = "";
96 foreach (CompilerError CompErr in results.Errors) 98 foreach (CompilerError CompErr in results.Errors)
97 { 99 {
98 Console.WriteLine("Line number " + CompErr.Line + 100 errtext += "Line number " + CompErr.Line +
99 ", Error Number: " + CompErr.ErrorNumber + 101 ", Error Number: " + CompErr.ErrorNumber +
100 ", '" + CompErr.ErrorText + ";"); 102 ", '" + CompErr.ErrorText + "'\r\n";
101 } 103 }
104 throw new Exception(errtext);
102 } 105 }
103 106
104 107