summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 4600f3f3..95c90708 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -605,13 +605,9 @@ bool textual_parser_t::test(std::istream& in) const
else
p = buf;
- if (std::strncmp(p, "<?xml", 5) == 0) {
-#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
- throw parse_error("Ledger file contains XML data, but format was not recognized");
-#else
- throw parse_error("Ledger file contains XML data, but no XML support present");
-#endif
- }
+ if (std::strncmp(p, "<?xml", 5) == 0)
+ throw_(parse_error,
+ "Ledger file contains XML data, but format was not recognized");
in.clear();
in.seekg(0, std::ios::beg);