summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2021-01-17 02:36:38 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2021-01-17 02:36:38 +0000
commit88e3190a721bc2f1815ddc2ea13cb6320d013d4d (patch)
tree19bf6e145f5c1f77074685b880ba542afdcab992 /Build
parent330931d073710445a8dd1e45720540fe859b2884 (diff)
Add a few lines for missing image file
git-svn-id: svn://tug.org/texlive/trunk@57451 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfximage.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfximage.c b/Build/source/texk/dvipdfm-x/pdfximage.c
index 37d4778455d..97b424f82df 100644
--- a/Build/source/texk/dvipdfm-x/pdfximage.c
+++ b/Build/source/texk/dvipdfm-x/pdfximage.c
@@ -440,14 +440,24 @@ pdf_ximage_load_image (const char *ident, const char *filename, load_options opt
#if defined(WIN32)
utf8name_failed = 0;
#endif /* WIN32 */
+ 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 -1;
}
}
fp = dpx_fopen(fullname, FOPEN_RBIN_MODE);
if (!fp) {
- WARN("Error opening image file \"%s\"", fullname);
- RELEASE(fullname);
+ if (dpx_conf.compat_mode == dpx_mode_compat_mode) {
+ WARN("Error opening image file \"%s\"", fullname);
+ RELEASE(fullname);
+ } else {
+ RELEASE(fullname);
+ ERROR("Image inclusion failed for \"%s\".", filename);
+ }
return -1;
}
if (dpx_conf.verbose_level > 0) {