More intelligent error reporting from EventQueueClient

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1760 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-04-22 18:59:39 +00:00
parent fd3c8d7b64
commit fc102af3a8

View File

@@ -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)