Better logging when adding a new indexer and it fails

This commit is contained in:
Mark McDowall
2014-03-01 20:05:35 -08:00
parent ce31732b95
commit e0d8d18838
5 changed files with 10 additions and 10 deletions
@@ -48,11 +48,11 @@ namespace NzbDrone.Core.Indexers
var apiKeyFailure = new ValidationFailure("ApiKey", "Invalid API Key");
throw new ValidationException(new List<ValidationFailure> { apiKeyFailure }.ToArray());
}
catch (Exception)
catch (Exception ex)
{
_logger.Warn("Indexer doesn't appear to be Newznab based");
_logger.WarnException("Indexer doesn't appear to be Newznab based: " + ex.Message, ex);
var failure = new ValidationFailure("Url", "Invalid Newznab URL entered");
var failure = new ValidationFailure("Url", "Invalid Newznab URL, check log for details");
throw new ValidationException(new List<ValidationFailure> { failure }.ToArray());
}
}