Fixed: Better error message when searching for episode without an absolute episode number

This commit is contained in:
Mark McDowall 2017-05-09 20:00:14 -07:00
parent a63248401e
commit db15949704
No known key found for this signature in database
GPG Key ID: D4CEFA9A718052E0
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading.Tasks;
@ -199,7 +199,7 @@ namespace NzbDrone.Core.IndexerSearch
}
else
{
throw new ArgumentOutOfRangeException("AbsoluteEpisodeNumber", "Can not search for an episode without an absolute episode number");
throw new ArgumentOutOfRangeException("AbsoluteEpisodeNumber", $"Can not search for {series.Title} - S{episode.SeasonNumber:00}E{episode.EpisodeNumber:00} it does not have an absolute episode number");
}
return Dispatch(indexer => indexer.Fetch(searchSpec), searchSpec);