Log to console if C# line/column lookup fails.

0.6.0-stable
Mike Mazur 2008-07-27 10:41:44 +00:00
parent 11a3fbf4aa
commit e17520621c
2 changed files with 4 additions and 2 deletions

View File

@ -491,7 +491,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
//}
//catch (KeyNotFoundException) // we don't have this line/column mapped
//{
// lslPos = new KeyValuePair<int, int>(-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<int, int>(-CompErr.Line, -CompErr.Column);
//}
// The Second Life viewer's script editor begins

View File

@ -555,7 +555,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
}
catch (KeyNotFoundException) // we don't have this line/column mapped
{
lslPos = new KeyValuePair<int, int>(-1, -1);
m_scriptEngine.Log.Debug(String.Format("[Compiler]: Lookup of C# line {0}, column {1} failed.", CompErr.Line, CompErr.Column));
lslPos = new KeyValuePair<int, int>(-CompErr.Line, -CompErr.Column);
}
// The Second Life viewer's script editor begins