Fix episode reference and add case for track import failure due to permissions. Fixes #212. (#213)

pull/215/head
Daniel Underwood 7 years ago committed by Qstick
parent 2f6a13092f
commit 24ff756eeb

@ -149,10 +149,15 @@ namespace NzbDrone.Core.MediaFiles.TrackImport
_logger.Warn(e, "Couldn't import track " + localTrack);
importResults.Add(new ImportResult(importDecision, "Failed to import track, Destination already exists."));
}
catch (UnauthorizedAccessException e)
{
_logger.Warn(e, "Couldn't import track " + localTrack);
importResults.Add(new ImportResult(importDecision, "Failed to import track, Permissions error"));
}
catch (Exception e)
{
_logger.Warn(e, "Couldn't import track " + localTrack);
importResults.Add(new ImportResult(importDecision, "Failed to import episode"));
importResults.Add(new ImportResult(importDecision, "Failed to import track"));
}
}

Loading…
Cancel
Save