From 4bb9f0f429cd29e063c4db3e7159cde1a89a7363 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 8 Oct 2008 00:04:28 +0000 Subject: Fix friendly errors in DNE as well --- .../DotNetEngine/EventQueueThreadClass.cs | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs index 1acb1b5..0f74b30 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs @@ -290,20 +290,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine InExecution = false; } } - catch (SelfDeleteException sde) - { - // Make sure this exception isn't consumed here... we need it - throw sde; - } catch (TargetInvocationException tie) { - // Probably don't need to special case this one - throw tie; - } - catch (Exception e) - { + Exception e = tie.InnerException; + + if (e is SelfDeleteException) // Forward it + throw e; + InExecution = false; - string text = FormatException(e, QIS.LineMap); + string text = FormatException(tie, QIS.LineMap); // DISPLAY ERROR INWORLD @@ -357,6 +352,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine } } } + catch (Exception e) + { + throw; + } finally { InExecution = false; -- cgit v1.1