1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

Warning message when BTN API throw internal server error

This commit is contained in:
Taloth Saldono
2015-10-20 19:31:40 +02:00
parent 9cc8ed545f
commit e8d6d62fba
2 changed files with 15 additions and 3 deletions
@@ -306,13 +306,19 @@ namespace NzbDrone.Core.Indexers
}
catch (UnsupportedFeedException ex)
{
_logger.WarnException("Indexer feed is not supported: " + ex.Message, ex);
_logger.WarnException("Indexer feed is not supported", ex);
return new ValidationFailure(string.Empty, "Indexer feed is not supported: " + ex.Message);
}
catch (IndexerException ex)
{
_logger.WarnException("Unable to connect to indexer", ex);
return new ValidationFailure(string.Empty, "Unable to connect to indexer. " + ex.Message);
}
catch (Exception ex)
{
_logger.WarnException("Unable to connect to indexer: " + ex.Message, ex);
_logger.WarnException("Unable to connect to indexer", ex);
return new ValidationFailure(string.Empty, "Unable to connect to indexer, check the log for more details");
}