From 7820a83a5d6823c7d0c08cef20a5ec3d374743c8 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 8 Apr 2023 22:49:53 +0300 Subject: [PATCH] Fixed: (Indexers) Include exception message in ValidationFailure --- .../Cardigann/Exceptions/CardigannConfigException.cs | 1 - .../Definitions/Cardigann/Exceptions/CardigannException.cs | 4 ---- src/NzbDrone.Core/Indexers/HttpIndexerBase.cs | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Exceptions/CardigannConfigException.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Exceptions/CardigannConfigException.cs index 5986ec0fe..aa1388a57 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Exceptions/CardigannConfigException.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Exceptions/CardigannConfigException.cs @@ -1,4 +1,3 @@ -using NzbDrone.Common.Exceptions; using NzbDrone.Core.Indexers.Cardigann; namespace NzbDrone.Core.Indexers.Definitions.Cardigann.Exceptions diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Exceptions/CardigannException.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Exceptions/CardigannException.cs index 18ee3644d..16acee929 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Exceptions/CardigannException.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Exceptions/CardigannException.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using NzbDrone.Common.Exceptions; namespace NzbDrone.Core.Indexers.Definitions.Cardigann.Exceptions diff --git a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs index f0819e9d8..b110057d3 100644 --- a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs +++ b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs @@ -644,7 +644,7 @@ namespace NzbDrone.Core.Indexers { _logger.Warn(ex, "Unable to connect to indexer"); - return new ValidationFailure(string.Empty, "Unable to connect to indexer, check the log above the ValidationFailure for more details"); + return new ValidationFailure(string.Empty, "Unable to connect to indexer, check the log above the ValidationFailure for more details. " + ex.Message); } return null;