浏览代码

Use ArgumentException

Cody Robibero 1 年之前
父节点
当前提交
c47bfb99bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Jellyfin.Drawing.Skia/SkiaEncoder.cs

+ 1 - 1
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);