1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-26 21:35:57 +00:00

Further clean up of error messages

This commit is contained in:
Robin Stuart
2020-11-08 08:32:05 +00:00
parent 8f6f8b2cf5
commit 9ca8bc3bc0
8 changed files with 47 additions and 57 deletions

View File

@@ -58,14 +58,14 @@ struct mainprog_info_type {
static void writepng_error_handler(png_structp png_ptr, png_const_charp msg) {
struct mainprog_info_type *graphic;
fprintf(stderr, _("writepng libpng error: %s (F30)\n"), msg);
fprintf(stderr, _("libpng error: %s\n"), msg);
fflush(stderr);
graphic = (struct mainprog_info_type*) png_get_error_ptr(png_ptr);
if (graphic == NULL) {
/* we are completely hosed now */
fprintf(stderr,
_("writepng severe error: jmpbuf not recoverable; terminating. (F31)\n"));
_("libpng error: jmpbuf not recoverable; terminating\n"));
fflush(stderr);
return;
}