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:
3
error.c
3
error.c
@@ -716,6 +716,9 @@ 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) {
|
||||||
|
if ((ctxt == NULL) && (channel == xmlGenericErrorDefaultFunc))
|
||||||
|
xmlReportError(ctxt, to);
|
||||||
|
else
|
||||||
channel(data, "%s", to->message);
|
channel(data, "%s", to->message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user