(parse_and_report): If XML support was not compiled in, generate an
error when the "xml" command is used.
This commit is contained in:
parent
48cb87b8bd
commit
cd339f9ddc
1 changed files with 6 additions and 2 deletions
8
main.cc
8
main.cc
|
|
@ -452,9 +452,13 @@ def vmax(d, val):\n\
|
||||||
formatter = new format_entries(*out, *format);
|
formatter = new format_entries(*out, *format);
|
||||||
else if (command == "x")
|
else if (command == "x")
|
||||||
formatter = new format_emacs_transactions(*out);
|
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);
|
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);
|
formatter = new format_transactions(*out, *format);
|
||||||
|
|
||||||
if (command == "w") {
|
if (command == "w") {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue