From fe06f37e6bf7e26f739491ff875b4f3c75f2e2dc Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 29 Sep 2008 10:35:07 +0000 Subject: Mantis #2293 Same fix for the DNE --- OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs index 4bd0b45..2306bce 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs @@ -359,6 +359,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine string FormatException(Exception e, Dictionary, KeyValuePair> LineMap) { + if (e.InnerException == null) + return e.ToString(); + string message = "Runtime error:\n" + e.InnerException.StackTrace; string[] lines = message.Split(new char[] {'\n'}); -- cgit v1.1