Throw download as failed for invalid magnet links

This commit is contained in:
Bogdan 2023-09-10 09:26:11 +03:00 committed by Mark McDowall
parent f87a66fcba
commit 091449d9bf
1 changed files with 1 additions and 3 deletions

View File

@ -225,9 +225,7 @@ namespace NzbDrone.Core.Download
}
catch (FormatException ex)
{
_logger.Error(ex, "Failed to parse magnetlink for episode '{0}': '{1}'", remoteEpisode.Release.Title, magnetUrl);
return null;
throw new ReleaseDownloadException(remoteEpisode.Release, "Failed to parse magnetlink for episode '{0}': '{1}'", ex, remoteEpisode.Release.Title, magnetUrl);
}
if (hash != null)