summaryrefslogtreecommitdiff
path: root/Services
diff options
context:
space:
mode:
Diffstat (limited to 'Services')
-rw-r--r--Services/MediaService.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Services/MediaService.cs b/Services/MediaService.cs
index cf51c42..d608cc9 100644
--- a/Services/MediaService.cs
+++ b/Services/MediaService.cs
@@ -299,9 +299,7 @@ public class MediaService : IMediaService {
public Stream GetThumbnail(Guid mediaId, int? width, int? height) {
if(width is null && height is null)
- throw new ThumbnailException(
- "Both width and height cannot be null!",
- mediaId);
+ throw new ApiModels.ArgumentException("Both width and height cannot be null!");
var thumbPath = GetThumbnailPath(mediaId, width, height);