1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

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.
This commit is contained in:
Nick Wellnhofer
2023-12-23 01:40:54 +01:00
parent c1bddd4c26
commit 331dcd6200

View File

@@ -716,7 +716,10 @@ xmlVRaiseError(xmlStructuredErrorFunc schannel,
} else if (xmlStructuredError != NULL) { } else if (xmlStructuredError != NULL) {
xmlStructuredError(xmlStructuredErrorContext, to); xmlStructuredError(xmlStructuredErrorContext, to);
} else if (channel != NULL) { } 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); return(0);