Browse Source

Use better exception

af/merge-core
James Jackson-South 9 years ago
parent
commit
73d5110564
  1. 4
      src/ImageSharp/Image/Image{TColor}.cs

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

Loading…
Cancel
Save