Fixed: EZTV logging generic error when there were no results

This commit is contained in:
Mark McDowall
2014-12-03 17:22:14 -08:00
parent 0cc4639e65
commit 29ee0ef2be
6 changed files with 48 additions and 29 deletions

View File

@@ -154,7 +154,7 @@ namespace NzbDrone.Core.Indexers
}
catch (HttpException httpException)
{
if ((int)httpException.Response.StatusCode == 429)
if ((int) httpException.Response.StatusCode == 429)
{
_logger.Warn("API Request Limit reached for {0}", this);
}
@@ -170,6 +170,11 @@ namespace NzbDrone.Core.Indexers
{
_logger.Warn("Invalid API Key for {0} {1}", this, url);
}
catch (IndexerException ex)
{
var message = String.Format("{0} - {1}", ex.Message, url);
_logger.WarnException(message, ex);
}
catch (Exception feedEx)
{
feedEx.Data.Add("FeedUrl", url);