summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-04-01 00:24:17 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:07 -0400
commitf7090b1c33f1b55b6d87624336196bd6677b23a1 (patch)
tree4b390231bd07564f773c6b230003640fe8dbe3da
parent56b5f5fccedef6e87c8bb64ad2d9ea559b480384 (diff)
downloadfork-ledger-f7090b1c33f1b55b6d87624336196bd6677b23a1.tar.gz
fork-ledger-f7090b1c33f1b55b6d87624336196bd6677b23a1.tar.bz2
fork-ledger-f7090b1c33f1b55b6d87624336196bd6677b23a1.zip
(test): Sense of an #ifdef test was reversed somehow.
-rw-r--r--textual.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/textual.cc b/textual.cc
index 94beb000..79105617 100644
--- a/textual.cc
+++ b/textual.cc
@@ -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
}