Skip to content

Commit

Permalink
coders/pnm: use exception instead of perror
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlijnWajer committed May 31, 2020
1 parent e300b20 commit 44a74ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coders/pnm.c
Expand Up @@ -2073,7 +2073,7 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image,
}
count=WriteBlob(image,extent,pixels);
if (count != (ssize_t) extent) {
perror("WriteBlob failed");
ThrowFileException(exception,FileOpenError,"UnableToWriteFile", image->filename); \
status = MagickFalse;
break;
}
Expand Down Expand Up @@ -2178,7 +2178,7 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image,
}
count=WriteBlob(image,extent,pixels);
if (count != (ssize_t) extent) {
perror("WriteBlob failed");
ThrowFileException(exception,FileOpenError,"UnableToWriteFile", image->filename); \
status = MagickFalse;
break;
}
Expand Down

0 comments on commit 44a74ec

Please sign in to comment.