aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler
diff options
context:
space:
mode:
authorTedd Hansen2007-08-25 20:34:54 +0000
committerTedd Hansen2007-08-25 20:34:54 +0000
commit80234b98e5dd03de08229fb5cc6dd2a42e70ec24 (patch)
treefcc566aa0855c79655a5749be245cd16db7cd5aa /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler
parentTest to see if this change improves or makes worse the texture sending bug (diff)
downloadopensim-SC_OLD-80234b98e5dd03de08229fb5cc6dd2a42e70ec24.zip
opensim-SC_OLD-80234b98e5dd03de08229fb5cc6dd2a42e70ec24.tar.gz
opensim-SC_OLD-80234b98e5dd03de08229fb5cc6dd2a42e70ec24.tar.bz2
opensim-SC_OLD-80234b98e5dd03de08229fb5cc6dd2a42e70ec24.tar.xz
Removal of script that was unable to compile no longer crashes server.
Displays script compile error messages in-world.
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