(test): Sense of an #ifdef test was reversed somehow.
This commit is contained in:
parent
56b5f5fcce
commit
f7090b1c33
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue