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);