summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-05-22 19:16:11 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-05-22 21:35:03 -0400
commitdb5418c8386e4a1a1b72e0bcdba2eeb22f99b96f (patch)
tree96c7fefa6dd846eaa5c53fec412dff54c866b633 /src/filters.cc
parent925b70d5c60849a2ca6857fcc5727f0d87d14757 (diff)
downloadfork-ledger-db5418c8386e4a1a1b72e0bcdba2eeb22f99b96f.tar.gz
fork-ledger-db5418c8386e4a1a1b72e0bcdba2eeb22f99b96f.tar.bz2
fork-ledger-db5418c8386e4a1a1b72e0bcdba2eeb22f99b96f.zip
Made a peculiar error slightly more verbose
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 0c45d356..13e188b1 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -869,7 +869,8 @@ void budget_posts::report_budget_items(const date_t& date)
optional<date_t> begin = pair.first.start;
if (! begin) {
if (! pair.first.find_period(date))
- throw_(std::runtime_error, _("Something odd has happened"));
+ throw_(std::runtime_error,
+ _("Something odd has happened at date %1") << date);
begin = pair.first.start;
}
assert(begin);