texlive[55905] Build/source/texk/web2c/pdftexdir: show unfound file

commits+kakuto at tug.org commits+kakuto at tug.org
Wed Jul 22 10:37:50 CEST 2020


Revision: 55905
          http://tug.org/svn/texlive?view=revision&revision=55905
Author:   kakuto
Date:     2020-07-22 10:37:50 +0200 (Wed, 22 Jul 2020)
Log Message:
-----------
show unfound file names in fatal error messages

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
    trunk/Build/source/texk/web2c/pdftexdir/pdftex.web
    trunk/Build/source/texk/web2c/pdftexdir/writeimg.c

Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2020-07-21 23:53:21 UTC (rev 55904)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2020-07-22 08:37:50 UTC (rev 55905)
@@ -1,3 +1,8 @@
+2020-07-22  Akira Kakuto  <kakuto at 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.

Modified: trunk/Build/source/texk/web2c/pdftexdir/pdftex.web
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/pdftex.web	2020-07-21 23:53:21 UTC (rev 55904)
+++ trunk/Build/source/texk/web2c/pdftexdir/pdftex.web	2020-07-22 08:37:50 UTC (rev 55905)
@@ -19327,8 +19327,10 @@
         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}

Modified: trunk/Build/source/texk/web2c/pdftexdir/writeimg.c
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/writeimg.c	2020-07-21 23:53:21 UTC (rev 55904)
+++ trunk/Build/source/texk/web2c/pdftexdir/writeimg.c	2020-07-22 08:37:50 UTC (rev 55905)
@@ -305,7 +305,7 @@
     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);



More information about the tex-live-commits mailing list.