From 21af83013f3b1bae511a61b9e27224ab3de235c1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 30 Apr 2007 11:22:08 +0000 Subject: Did more work on the utility code. --- src/xmlparse.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xmlparse.cc') diff --git a/src/xmlparse.cc b/src/xmlparse.cc index 5dfcdbaa..1b9e9a45 100644 --- a/src/xmlparse.cc +++ b/src/xmlparse.cc @@ -208,7 +208,7 @@ unsigned int xml_parser_t::parse(std::istream& in, catch (const std::exception& err) { //unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; XML_ParserFree(parser); - throw_(parse_exception, err.what()); + throw_(parse_error, err.what()); } if (! have_error.empty()) { @@ -225,7 +225,7 @@ unsigned int xml_parser_t::parse(std::istream& in, //unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; const char * err = XML_ErrorString(XML_GetErrorCode(parser)); XML_ParserFree(parser); - throw_(parse_exception, err); + throw_(parse_error, err); } } -- cgit v1.2.3