From 827117f0b1eee0118aab1ef003dfa238e03b8c9e Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 11 Apr 2009 00:12:57 +0000 Subject: [PATCH] * Add catch-all error handlers back to scene. --- OpenSim/Region/Framework/Scenes/Scene.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index b79918a627..54c420d484 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -927,10 +927,10 @@ namespace OpenSim.Region.Framework.Scenes { throw; } - //catch (AccessViolationException e) - //{ - // m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); - //} + catch (AccessViolationException e) + { + m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); + } //catch (NullReferenceException e) //{ // m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); @@ -939,10 +939,10 @@ namespace OpenSim.Region.Framework.Scenes { m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); } - //catch (Exception e) - //{ - // m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); - //} + catch (Exception e) + { + m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); + } finally { //updateLock.ReleaseMutex();