Made a peculiar error slightly more verbose

This commit is contained in:
John Wiegley 2010-05-22 19:16:11 -04:00
parent 925b70d5c6
commit db5418c838

View file

@ -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);