The Free Software Media System - Server Backend & API
Use ArgumentException
Cody Robiberoc47bfb99bbff
diff --git a/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs b/src/Jellyfin.Drawing.Skia/SkiaEncoder.csindex 9454e63aa6..a407194992 100644--- a/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs+++ b/src/Jellyfin.Drawing.Skia/SkiaEncoder.cs@@ -431,7 +431,7 @@ public class SkiaEncoder : IImageEncoderif (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);