diff options
author | John Wiegley <johnw@newartisans.com> | 2005-02-17 01:20:44 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:04 -0400 |
commit | cd339f9ddc0f78cfef3890395e1ef35184636888 (patch) | |
tree | dfe26031dc8391b48816c36e9e02e8212ba4316f | |
parent | 48cb87b8bdad1cd7279c6ce35a76b677c833599d (diff) | |
download | fork-ledger-cd339f9ddc0f78cfef3890395e1ef35184636888.tar.gz fork-ledger-cd339f9ddc0f78cfef3890395e1ef35184636888.tar.bz2 fork-ledger-cd339f9ddc0f78cfef3890395e1ef35184636888.zip |
(parse_and_report): If XML support was not compiled in, generate an
error when the "xml" command is used.
-rw-r--r-- | main.cc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -452,9 +452,13 @@ def vmax(d, val):\n\ formatter = new format_entries(*out, *format); else if (command == "x") formatter = new format_emacs_transactions(*out); - else if (command == "X") + else if (command == "X") { +#ifdef HAVE_XMLPARSE formatter = new format_xml_entries(*out, config.show_totals); - else +#else + throw error("XML support was not compiled into this copy of Ledger"); +#endif + } else formatter = new format_transactions(*out, *format); if (command == "w") { |