diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-01-16 03:48:03 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-01-16 03:48:03 +0000 |
commit | b6d2b9e3689e87c2aeff02f0cb9c40461ac883bb (patch) | |
tree | 832ad23d38c805829cfda0e26c584c71170895e2 /Build/source/texk/dvipdfm-x/pdfximage.c | |
parent | b9f9b508c7bc9fca94e6910c571be6d22d6cf80c (diff) |
Exit with bad status when image inclusion fails (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@57439 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfximage.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfximage.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfximage.c b/Build/source/texk/dvipdfm-x/pdfximage.c index 0265ef8e5ad..37d4778455d 100644 --- a/Build/source/texk/dvipdfm-x/pdfximage.c +++ b/Build/source/texk/dvipdfm-x/pdfximage.c @@ -1,6 +1,6 @@ /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. - Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata, + Copyright (C) 2002-2021 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu> @@ -488,8 +488,13 @@ pdf_ximage_load_image (const char *ident, const char *filename, load_options opt if (dpx_conf.verbose_level > 0) MESG(")"); - if (id < 0) - WARN("pdf: image inclusion failed for \"%s\".", filename); + if (id < 0) { + if (dpx_conf.compat_mode == dpx_mode_compat_mode) { + WARN("Image inclusion failed for \"%s\".", filename); + } else { + ERROR("Image inclusion failed for \"%s\".", filename); + } + } return id; } |