Fixed: Log path when import fails for series import

Fixes #3970
This commit is contained in:
Mark McDowall 2020-09-19 23:29:45 -07:00
parent 930742ae2c
commit a10eb88a95
1 changed files with 4 additions and 2 deletions

View File

@ -60,6 +60,8 @@ namespace NzbDrone.Core.Tv
foreach (var s in newSeries) foreach (var s in newSeries)
{ {
_logger.Info("Adding Series {0} Path: [{1}]", s, s.Path);
try try
{ {
var series = AddSkyhookData(s); var series = AddSkyhookData(s);
@ -91,11 +93,11 @@ namespace NzbDrone.Core.Tv
} }
catch (SeriesNotFoundException) catch (SeriesNotFoundException)
{ {
_logger.Error("tvdbid {0} was not found, it may have been removed from TheTVDB.", newSeries.TvdbId); _logger.Error("tvdbid {0} was not found, it may have been removed from TheTVDB. Path: {1}", newSeries.TvdbId, newSeries.Path);
throw new ValidationException(new List<ValidationFailure> throw new ValidationException(new List<ValidationFailure>
{ {
new ValidationFailure("TvdbId", "A series with this ID was not found", newSeries.TvdbId) new ValidationFailure("TvdbId", $"A series with this ID was not found. Path: {newSeries.Path}", newSeries.TvdbId)
}); });
} }