diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index e2e8d36088..d5271a1481 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs @@ -491,7 +491,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL //} //catch (KeyNotFoundException) // we don't have this line/column mapped //{ - // lslPos = new KeyValuePair(-1, -1); + // m_scriptEngine.Log.Debug(String.Format("[{0}]: Lookup of C# line {1}, column {2} failed.", m_scriptEngine.ScriptEngineName, CompErr.Line, CompErr.Column)); + // lslPos = new KeyValuePair(-CompErr.Line, -CompErr.Column); //} // The Second Life viewer's script editor begins diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index e8cfdf7f3e..cbf79808b9 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs @@ -555,7 +555,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools } catch (KeyNotFoundException) // we don't have this line/column mapped { - lslPos = new KeyValuePair(-1, -1); + m_scriptEngine.Log.Debug(String.Format("[Compiler]: Lookup of C# line {0}, column {1} failed.", CompErr.Line, CompErr.Column)); + lslPos = new KeyValuePair(-CompErr.Line, -CompErr.Column); } // The Second Life viewer's script editor begins