mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-02-05 05:47:00 +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:
parent
c1bddd4c26
commit
331dcd6200
5
error.c
5
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user