We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 422bbf5 commit dd96d67Copy full SHA for dd96d67
Magick++/lib/Image.cpp
@@ -5140,9 +5140,14 @@ void Magick::Image::read(MagickCore::Image *image,
5140
image == (MagickCore::Image *) NULL)
5141
{
5142
(void) MagickCore::DestroyExceptionInfo(exceptionInfo);
5143
- throwExceptionExplicit(ImageWarning,"No image was loaded.");
+ if (!quiet())
5144
+ throwExceptionExplicit(MagickCore::ImageWarning,
5145
+ "No image was loaded.");
5146
+ }
5147
+ else
5148
+ {
5149
+ ThrowImageException;
5150
}
- ThrowImageException;
5151
if (image != (MagickCore::Image *) NULL)
5152
throwException(&image->exception,quiet());
5153
0 commit comments