diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-30 11:22:08 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:34 -0400 |
commit | 21af83013f3b1bae511a61b9e27224ab3de235c1 (patch) | |
tree | bf0eea45f33e7e269220adc6ce37815f7bc14a3f /src/xml.cc | |
parent | 3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba (diff) | |
download | ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.tar.gz ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.tar.bz2 ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.zip |
Did more work on the utility code.
Diffstat (limited to 'src/xml.cc')
-rw-r--r-- | src/xml.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -382,14 +382,14 @@ document_t * document_t::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()) { //unsigned long line = XML_GetCurrentLineNumber(parser) - offset++; #if 0 // jww (2007-04-26): What is this doing?? - parse_exception err(have_error); + parse_error err(have_error); std::cerr << "Error: " << err.what() << std::endl; #endif have_error = ""; @@ -399,7 +399,7 @@ document_t * document_t::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); } } |