diff --git a/src/ImageSharp/Image/Image{TColor}.cs b/src/ImageSharp/Image/Image{TColor}.cs index ed556f2f3e..6bde8c3a55 100644 --- a/src/ImageSharp/Image/Image{TColor}.cs +++ b/src/ImageSharp/Image/Image{TColor}.cs @@ -51,7 +51,7 @@ namespace ImageSharp { if (!this.Configuration.ImageFormats.Any()) { - throw new NotSupportedException("No image formats have been configured."); + throw new InvalidOperationException("No image formats have been configured."); } this.CurrentImageFormat = this.Configuration.ImageFormats.First(); @@ -383,7 +383,7 @@ namespace ImageSharp { if (!this.Configuration.ImageFormats.Any()) { - throw new NotSupportedException("No image formats have been configured."); + throw new InvalidOperationException("No image formats have been configured."); } if (!stream.CanRead)