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