From 73ee6ebf9388c712be03c0523f527681984d5cbb Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 29 Aug 2002 09:59:25 +0000 Subject: [PATCH] Better error diagnostics for XML reader --- recctrl/xmlread.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/recctrl/xmlread.c b/recctrl/xmlread.c index 310e742..0cb5a75 100644 --- a/recctrl/xmlread.c +++ b/recctrl/xmlread.c @@ -1,4 +1,4 @@ -/* $Id: xmlread.c,v 1.4 2002-08-29 08:41:07 adam Exp $ +/* $Id: xmlread.c,v 1.5 2002-08-29 09:59:25 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -202,7 +202,10 @@ static int cb_external_entity (XML_Parser pparser, } if (!XML_ParseBuffer (parser, r, done)) { - yaz_log (LOG_WARN, "XML_ParseBuffer failed %s", + yaz_log (LOG_WARN, "%s:%d:%d:XML error: %s", + systemId, + XML_GetCurrentLineNumber(parser), + XML_GetCurrentColumnNumber(parser), XML_ErrorString(XML_GetErrorCode(parser))); } } @@ -423,7 +426,9 @@ data1_node *zebra_read_xml (data1_handle dh, done = 1; if (!XML_ParseBuffer (parser, r, done)) { - yaz_log (LOG_WARN, "XML_ParseBuffer (1) failed %s", + yaz_log (LOG_WARN, "%d:%d:XML error: %s", + XML_GetCurrentLineNumber(parser), + XML_GetCurrentColumnNumber(parser), XML_ErrorString(XML_GetErrorCode(parser))); } } -- 1.7.10.4