Throw download as failed for invalid magnet links

Closes #4463
This commit is contained in:
Bogdan 2024-01-17 03:47:38 +02:00
parent 5facdeb2ff
commit b8c31ea895
1 changed files with 1 additions and 3 deletions

View File

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