Skip to content

Commit af4b9ed

Browse files
author
Cristy
committed
...
1 parent 0b26995 commit af4b9ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

magick/constitute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ MagickExport Image *ReadImage(const ImageInfo *image_info,
863863
}
864864
read_info=DestroyImageInfo(read_info);
865865
if (GetBlobError(image) != MagickFalse)
866-
ThrowReaderException(ThrowImageException,"UnableToReadImageData");
866+
ThrowReaderException(CorruptImageError,"UnableToReadImageData");
867867
return(GetFirstImageInList(image));
868868
}
869869

@@ -1309,7 +1309,7 @@ MagickExport MagickBooleanType WriteImage(const ImageInfo *image_info,
13091309
(void) IdentifyImage(image,stderr,MagickFalse);
13101310
write_info=DestroyImageInfo(write_info);
13111311
if (GetBlobError(image) != MagickFalse)
1312-
ThrowBinaryException(FileOpenError,"UnableToWriteFile",image->filename);
1312+
ThrowWriterException(FileOpenError,"UnableToWriteFile");
13131313
return(status);
13141314
}
13151315

0 commit comments

Comments
 (0)