summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {