diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-10 16:06:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-10 16:06:29 +0000 |
commit | 36e408020a45d0bfe67eb3f524f4fdf0f4d9aefa (patch) | |
tree | b2a97e95d8a3da902eaea4451a622c951a08d1ef /Build/source/libs/xpdf/xpdf-src | |
parent | 4293f40bcee7e9f0bf77669379e5c923f725adfa (diff) |
label error messages as coming from libxpdf
git-svn-id: svn://tug.org/texlive/trunk@59160 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-src/xpdf/Error.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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); |