aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMike Mazur2008-07-27 10:41:44 +0000
committerMike Mazur2008-07-27 10:41:44 +0000
commite17520621c5ea8fd5fa8c1d24900905443e533aa (patch)
tree615ac944a0766c6d2f7195a2111aa0e26364154b
parentConversion from double to LSLInteger needs to be explicit. Fix issue 1826. (diff)
downloadopensim-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.
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs3
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs3
2 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
index e2e8d36..d5271a1 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
491 //} 491 //}
492 //catch (KeyNotFoundException) // we don't have this line/column mapped 492 //catch (KeyNotFoundException) // we don't have this line/column mapped
493 //{ 493 //{
494 // lslPos = new KeyValuePair<int, int>(-1, -1); 494 // m_scriptEngine.Log.Debug(String.Format("[{0}]: Lookup of C# line {1}, column {2} failed.", m_scriptEngine.ScriptEngineName, CompErr.Line, CompErr.Column));
495 // lslPos = new KeyValuePair<int, int>(-CompErr.Line, -CompErr.Column);
495 //} 496 //}
496 497
497 // The Second Life viewer's script editor begins 498 // 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 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