mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
Getting model by invalid ID throws a more specific exception.
This commit is contained in:
@@ -26,7 +26,7 @@ namespace NzbDrone.Core.Qualities
|
||||
}
|
||||
catch (InvalidOperationException e)
|
||||
{
|
||||
throw new InvalidOperationException("Sequence contains no element with qualityId = " + qualityId.ToString());
|
||||
throw new ModelNotFoundException(typeof(QualitySize), qualityId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user