From 36e408020a45d0bfe67eb3f524f4fdf0f4d9aefa Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 10 May 2021 16:06:29 +0000 Subject: label error messages as coming from libxpdf git-svn-id: svn://tug.org/texlive/trunk@59160 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/libs/xpdf/xpdf-src/xpdf/Error.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Build/source/libs/xpdf/xpdf-src') diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/Error.cc b/Build/source/libs/xpdf/xpdf-src/xpdf/Error.cc index 5a97505ed84..aec27dc5099 100644 --- a/Build/source/libs/xpdf/xpdf-src/xpdf/Error.cc +++ b/Build/source/libs/xpdf/xpdf-src/xpdf/Error.cc @@ -77,11 +77,14 @@ void CDECL error(ErrorCategory category, GFileOffset pos, (*errorCbk)(errorCbkData, category, (int)pos, sanitized->getCString()); } else { fflush(stdout); + /* Label the error messages for pdftex's use as libxpdf. + It would be cleaner to use the callback feature, but seems + like too much trouble at this late date. */ if (pos >= 0) { - fprintf(stderr, "%s (%d): %s\n", + fprintf(stderr, "\nlibxpdf: %s (%d): %s\n", errorCategoryNames[category], (int)pos, sanitized->getCString()); } else { - fprintf(stderr, "%s: %s\n", + fprintf(stderr, "\nlibxpdf: %s: %s\n", errorCategoryNames[category], sanitized->getCString()); } fflush(stderr); -- cgit v1.2.3