From fc102af3a862243fc3e2755df9bb00647a22a7d6 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Tue, 22 Apr 2008 18:59:39 +0000 Subject: [PATCH] More intelligent error reporting from EventQueueClient git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1760 52acb1d6-8a22-11de-b505-999d5b087335 --- libsecondlife/Capabilities/EventQueueClient.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libsecondlife/Capabilities/EventQueueClient.cs b/libsecondlife/Capabilities/EventQueueClient.cs index 2233bbad..d75603b9 100644 --- a/libsecondlife/Capabilities/EventQueueClient.cs +++ b/libsecondlife/Capabilities/EventQueueClient.cs @@ -26,6 +26,7 @@ using System; using System.Net; +using System.Threading; using libsecondlife.StructuredData; namespace libsecondlife.Capabilities @@ -144,8 +145,16 @@ namespace libsecondlife.Capabilities } else if (!e.Cancelled && !Helpers.StringContains(message, "502")) { - SecondLife.LogStatic("Unrecognized caps exception from " + _Client.Location + - ": " + e.Error.Message, Helpers.LogLevel.Warning); + if (e.Error.InnerException != null) + { + SecondLife.LogStatic("Unrecognized caps exception from " + _Client.Location + + ": " + e.Error.InnerException.Message, Helpers.LogLevel.Warning); + } + else + { + SecondLife.LogStatic("Unrecognized caps exception from " + _Client.Location + + ": " + e.Error.Message, Helpers.LogLevel.Warning); + } } } else if (!e.Cancelled && e.Result != null)