Log to console if C# line/column lookup fails.
parent
11a3fbf4aa
commit
e17520621c
|
@ -491,7 +491,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||||
//}
|
//}
|
||||||
//catch (KeyNotFoundException) // we don't have this line/column mapped
|
//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
|
// The Second Life viewer's script editor begins
|
||||||
|
|
|
@ -555,7 +555,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||||
}
|
}
|
||||||
catch (KeyNotFoundException) // we don't have this line/column mapped
|
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
|
// The Second Life viewer's script editor begins
|
||||||
|
|
Loading…
Reference in New Issue