From 331dcd62003a152eba6e5fadaed66fedecbe30cb Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 23 Dec 2023 01:40:54 +0100 Subject: [PATCH] error: Reenable full error reports to default handler This should make console output include some information about nodes again. Note that this extra information must be disabled if a custom generic error handler was set. Many downstream test suites rely on this behavior. --- error.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/error.c b/error.c index 4b344ec2..4f71c036 100644 --- a/error.c +++ b/error.c @@ -716,7 +716,10 @@ xmlVRaiseError(xmlStructuredErrorFunc schannel, } else if (xmlStructuredError != NULL) { xmlStructuredError(xmlStructuredErrorContext, to); } else if (channel != NULL) { - channel(data, "%s", to->message); + if ((ctxt == NULL) && (channel == xmlGenericErrorDefaultFunc)) + xmlReportError(ctxt, to); + else + channel(data, "%s", to->message); } return(0);