diff options
author | Mike Mazur | 2008-07-27 10:41:44 +0000 |
---|---|---|
committer | Mike Mazur | 2008-07-27 10:41:44 +0000 |
commit | e17520621c5ea8fd5fa8c1d24900905443e533aa (patch) | |
tree | 615ac944a0766c6d2f7195a2111aa0e26364154b /OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | |
parent | Conversion from double to LSLInteger needs to be explicit. Fix issue 1826. (diff) | |
download | opensim-SC_OLD-e17520621c5ea8fd5fa8c1d24900905443e533aa.zip opensim-SC_OLD-e17520621c5ea8fd5fa8c1d24900905443e533aa.tar.gz opensim-SC_OLD-e17520621c5ea8fd5fa8c1d24900905443e533aa.tar.bz2 opensim-SC_OLD-e17520621c5ea8fd5fa8c1d24900905443e533aa.tar.xz |
Log to console if C# line/column lookup fails.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index e8cfdf7..cbf7980 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 | |||
555 | } | 555 | } |
556 | catch (KeyNotFoundException) // we don't have this line/column mapped | 556 | catch (KeyNotFoundException) // we don't have this line/column mapped |
557 | { | 557 | { |
558 | lslPos = new KeyValuePair<int, int>(-1, -1); | 558 | m_scriptEngine.Log.Debug(String.Format("[Compiler]: Lookup of C# line {0}, column {1} failed.", CompErr.Line, CompErr.Column)); |
559 | lslPos = new KeyValuePair<int, int>(-CompErr.Line, -CompErr.Column); | ||
559 | } | 560 | } |
560 | 561 | ||
561 | // The Second Life viewer's script editor begins | 562 | // The Second Life viewer's script editor begins |