diff options
| author | Cody Robibero <cody@robibe.ro> | 2024-03-01 17:12:45 -0700 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2024-03-01 17:12:50 -0700 |
| commit | c47bfb99bbff9f6b6cd847ba3b786936d59aa0dd (patch) | |
| tree | 76a8db305d8b87d8d3a93dd06233ac0d438985fd | |
| parent | a8a9f66878c7e9af4626e6f34e5e8e93f20a5620 (diff) | |
Use ArgumentException
| -rw-r--r-- | src/Jellyfin.Drawing.Skia/SkiaEncoder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs b/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs index 9454e63aa..a40719499 100644 --- a/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs +++ b/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs @@ -431,7 +431,7 @@ public class SkiaEncoder : IImageEncoder if (outputFormat == ImageFormat.Svg && !inputFormat.Equals(SvgFormat, StringComparison.OrdinalIgnoreCase)) { - throw new InvalidOperationException($"Requested svg output from {inputFormat} input"); + throw new ArgumentException($"Requested svg output from {inputFormat} input"); } var skiaOutputFormat = GetImageFormat(outputFormat); |
