summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/pdftexdir/pdftex.web4
-rw-r--r--Build/source/texk/web2c/pdftexdir/writeimg.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
index d0172e59afc..fdbf1e7eaee 100644
--- a/Build/source/texk/web2c/pdftexdir/ChangeLog
+++ b/Build/source/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-22 Akira Kakuto <kakuto@w32tex.org>
+ * pdftex.web, writeimg.c: Show unfound file names in
+ fatal error messages.
+ https://tug.org/pipermail/pdftex/2020-July/009203.html
+
2020-07-20 Andreas Scherer <https://ascherer.github.io>
* pdftex.ch: Avoid overful hboxes in table-of-contents.
diff --git a/Build/source/texk/web2c/pdftexdir/pdftex.web b/Build/source/texk/web2c/pdftexdir/pdftex.web
index 89df2d0e444..54218a8b879 100644
--- a/Build/source/texk/web2c/pdftexdir/pdftex.web
+++ b/Build/source/texk/web2c/pdftexdir/pdftex.web
@@ -19327,8 +19327,10 @@ begin
cur_area := "";
cur_ext := "";
pack_cur_name;
- if not tex_b_openin(f) then
+ if not tex_b_openin(f) then begin
+ print_nl("! "); print(s); print(" not found.");
pdf_error("ext5", "cannot open file for embedding");
+ end;
print("<<");
print(s);
if not eof(f) then begin {at least one byte available}
diff --git a/Build/source/texk/web2c/pdftexdir/writeimg.c b/Build/source/texk/web2c/pdftexdir/writeimg.c
index c392df97c8d..3cc814ddb6e 100644
--- a/Build/source/texk/web2c/pdftexdir/writeimg.c
+++ b/Build/source/texk/web2c/pdftexdir/writeimg.c
@@ -305,7 +305,7 @@ integer readimage(strnumber s, integer page_num, strnumber page_name,
cur_file_name = find_input_file(s);
img_name(img) = cur_file_name;
if (img_name(img) == NULL)
- pdftex_fail("cannot find image file");
+ pdftex_fail("cannot find image file %s", makecstring(s));
recorder_record_input(cur_file_name);
/* type checks */
checktypebyheader(img);