aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler
diff options
context:
space:
mode:
authorAdam Frisby2008-02-06 15:30:02 +0000
committerAdam Frisby2008-02-06 15:30:02 +0000
commitf93fdfa5af0a8dd39f471a97a55209451f7ca7a0 (patch)
tree210ba9757b0759232b4896febc482a9c5675e953 /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler
parent* Added debug message to try track down Mantis#305. (diff)
downloadopensim-SC_OLD-f93fdfa5af0a8dd39f471a97a55209451f7ca7a0.zip
opensim-SC_OLD-f93fdfa5af0a8dd39f471a97a55209451f7ca7a0.tar.gz
opensim-SC_OLD-f93fdfa5af0a8dd39f471a97a55209451f7ca7a0.tar.bz2
opensim-SC_OLD-f93fdfa5af0a8dd39f471a97a55209451f7ca7a0.tar.xz
* Marking off which uses of catch (Exception e) is legit and which are not, for later removal/replacement.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
index 2f985e4..10959c5 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs
@@ -318,7 +318,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
318 { 318 {
319 File.Delete(OutFile); 319 File.Delete(OutFile);
320 } 320 }
321 catch (Exception e) 321 catch (Exception e) // NOTLEGIT - Should be just catching FileIOException
322 { 322 {
323 //m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Unable to delete old existring script-file before writing new. Compile aborted: " + e.ToString()); 323 //m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Unable to delete old existring script-file before writing new. Compile aborted: " + e.ToString());
324 throw new Exception("Unable to delete old existring script-file before writing new. Compile aborted: " + e.ToString()); 324 throw new Exception("Unable to delete old existring script-file before writing new. Compile aborted: " + e.ToString());
@@ -335,7 +335,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
335 Path.Combine("ScriptEngines", srcFileName), 335 Path.Combine("ScriptEngines", srcFileName),
336 Script); 336 Script);
337 } 337 }
338 catch (Exception ex) 338 catch (Exception ex) // NOTLEGIT - Should be just catching FileIOException
339 { 339 {
340 m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Exception while trying to write script source to file \"" + srcFileName + "\": " + ex.ToString()); 340 m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Exception while trying to write script source to file \"" + srcFileName + "\": " + ex.ToString());
341 } 341 }