mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
Removal of script that was unable to compile no longer crashes server.
Displays script compile error messages in-world.
This commit is contained in:
@@ -93,12 +93,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
// TODO: Return errors to user somehow
|
||||
if (results.Errors.Count > 0)
|
||||
{
|
||||
|
||||
string errtext = "";
|
||||
foreach (CompilerError CompErr in results.Errors)
|
||||
{
|
||||
Console.WriteLine("Line number " + CompErr.Line +
|
||||
errtext += "Line number " + CompErr.Line +
|
||||
", Error Number: " + CompErr.ErrorNumber +
|
||||
", '" + CompErr.ErrorText + ";");
|
||||
", '" + CompErr.ErrorText + "'\r\n";
|
||||
}
|
||||
throw new Exception(errtext);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user