mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Getting model by invalid ID throws a more specific exception.
This commit is contained in:
parent
f3534de0c5
commit
54c36e9264
8 changed files with 38 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue