diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-25 02:19:25 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-25 02:23:47 +1000 |
| commit | ce68b92b8e5bfcdb9c36955dbbc7494efc04d7c6 (patch) | |
| tree | eba231faa5f1bf68aa59feaebb469776c2810da5 /Services | |
| parent | 440071053030579c35216b29aa3f0fe8fc7887b5 (diff) | |
Fixed issue where ThumbnailException is raised instead of ArgumentException when both width and height are null
Diffstat (limited to 'Services')
| -rw-r--r-- | Services/MediaService.cs | 4 |
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); |
