mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Setting up the framework for structured error reporting, touches a lot of
* HTMLparser.c c14n.c catalog.c error.c globals.c parser.c parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c xmlschemas.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/valid.h include/libxml/xmlerror.h: Setting up the framework for structured error reporting, touches a lot of modules, but little code now the error handling trail has been cleaned up. Daniel
This commit is contained in:
4
xmlIO.c
4
xmlIO.c
@ -350,6 +350,7 @@ xmlIOErr(int code, const char *extra)
|
||||
static void
|
||||
xmlLoaderErr(xmlParserCtxtPtr ctxt, const char *msg, const char *filename)
|
||||
{
|
||||
xmlStructuredErrorFunc schannel = NULL;
|
||||
xmlGenericErrorFunc channel = NULL;
|
||||
void *data = NULL;
|
||||
xmlErrorLevel level = XML_ERR_ERROR;
|
||||
@ -362,9 +363,10 @@ xmlLoaderErr(xmlParserCtxtPtr ctxt, const char *msg, const char *filename)
|
||||
channel = ctxt->sax->warning;
|
||||
level = XML_ERR_WARNING;
|
||||
}
|
||||
schannel = ctxt->sax->serror;
|
||||
data = ctxt->userData;
|
||||
}
|
||||
__xmlRaiseError(channel, data, ctxt, NULL, XML_FROM_IO,
|
||||
__xmlRaiseError(schannel, channel, data, ctxt, NULL, XML_FROM_IO,
|
||||
XML_IO_LOAD_ERROR, level, NULL, 0,
|
||||
filename, NULL, NULL, 0, 0,
|
||||
msg, filename);
|
||||
|
Reference in New Issue
Block a user