summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/web2c/lib/ChangeLog5
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog
index 5090b24c57e..6f13ddd94db 100644
--- a/Build/source/texk/web2c/lib/ChangeLog
+++ b/Build/source/texk/web2c/lib/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-16 Karl Berry <karl@tug.org>
+
+ * texmfmp.c (do_dump, do_undump): give full name of file
+ in fatal message when something cannot be (un)dumped.
+
2010-01-02 Karl Berry <karl@tug.org>
* texmfmp.c (runsystem): doc fix.
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index 52ab3da4c9a..bca3631909a 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -2165,8 +2165,8 @@ do_dump (char *p, int item_size, int nitems, FILE *out_file)
if (fwrite (p, item_size, nitems, out_file) != nitems)
#endif
{
- fprintf (stderr, "! Could not write %d %d-byte item(s).\n",
- nitems, item_size);
+ fprintf (stderr, "! Could not write %d %d-byte item(s) to %s.\n",
+ nitems, item_size, nameoffile+1);
uexit (1);
}
@@ -2192,7 +2192,8 @@ do_undump (char *p, int item_size, int nitems, FILE *in_file)
#else
if (fread (p, item_size, nitems, in_file) != (size_t) nitems)
#endif
- FATAL2 ("Could not undump %d %d-byte item(s)", nitems, item_size);
+ FATAL3 ("Could not undump %d %d-byte item(s) from %s",
+ nitems, item_size, nameoffile+1);
#if !defined (WORDS_BIGENDIAN) && !defined (NO_DUMP_SHARE)
swap_items (p, nitems, item_size);