diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-30 11:22:08 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:34 -0400 |
commit | 21af83013f3b1bae511a61b9e27224ab3de235c1 (patch) | |
tree | bf0eea45f33e7e269220adc6ce37815f7bc14a3f /src/format.cc | |
parent | 3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba (diff) | |
download | fork-ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.tar.gz fork-ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.tar.bz2 fork-ledger-21af83013f3b1bae511a61b9e27224ab3de235c1.zip |
Did more work on the utility code.
Diffstat (limited to 'src/format.cc')
-rw-r--r-- | src/format.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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); |