(test): Sense of an #ifdef test was reversed somehow.

This commit is contained in:
John Wiegley 2005-04-01 00:24:17 +00:00
parent 56b5f5fcce
commit f7090b1c33

View file

@ -311,9 +311,9 @@ bool textual_parser_t::test(std::istream& in) const
in.read(buf, 5);
if (std::strncmp(buf, "<?xml", 5) == 0) {
#ifdef HAVE_XMLPARSE
throw parse_error(path, linenum, "Ledger file contains XML data, but no XML support present");
#else
throw parse_error(path, linenum, "Ledger file contains XML data, but format was not recognized");
#else
throw parse_error(path, linenum, "Ledger file contains XML data, but no XML support present");
#endif
}