From 21af83013f3b1bae511a61b9e27224ab3de235c1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 30 Apr 2007 11:22:08 +0000 Subject: Did more work on the utility code. --- src/format.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/format.cc') diff --git a/src/format.cc b/src/format.cc index 774af6ca..9c34f876 100644 --- a/src/format.cc +++ b/src/format.cc @@ -1,5 +1,7 @@ #include "format.h" +#if 0 #include "pyinterp.h" +#endif namespace ledger { @@ -85,7 +87,7 @@ void format_t::parse(const string& fmt) if (current->max_width != -1 && current->min_width != -1 && current->max_width < current->min_width) - throw_(format_exception, "Maximum width is less than the minimum width"); + throw_(format_error, "Maximum width is less than the minimum width"); switch (*p) { case '|': @@ -107,7 +109,7 @@ void format_t::parse(const string& fmt) p++; } if (*p != close) - throw_(format_exception, "Missing '" << close << "'"); + throw_(format_error, "Missing '" << close << "'"); if (open == '{') { assert(! current->xpath); -- cgit v1.2.3