indexers: improve test indexer message on failure (#14421)

This commit is contained in:
Bogdan 2023-06-04 06:11:35 +03:00 committed by GitHub
parent 3a9360add9
commit f334cc89d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -319,7 +319,9 @@ namespace Jackett.Common.Services
_logger.Info($"Test search in {indexer.Name} => Found {result.Releases.Count()} releases [{stopwatch.ElapsedMilliseconds:0}ms]");
if (!result.Releases.Any())
throw new Exception($"Test search in {indexer.Name} => Found no results while trying to browse this tracker");
{
throw new Exception($"Test search in {indexer.Name} => Found no results while trying to browse this tracker. This may be an issue with the indexer, or other indexer settings such as search freeleech only etc.");
}
}
public void DeleteIndexer(string name)