Made a peculiar error slightly more verbose
This commit is contained in:
parent
925b70d5c6
commit
db5418c838
1 changed files with 2 additions and 1 deletions
|
|
@ -869,7 +869,8 @@ void budget_posts::report_budget_items(const date_t& date)
|
||||||
optional<date_t> begin = pair.first.start;
|
optional<date_t> begin = pair.first.start;
|
||||||
if (! begin) {
|
if (! begin) {
|
||||||
if (! pair.first.find_period(date))
|
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;
|
begin = pair.first.start;
|
||||||
}
|
}
|
||||||
assert(begin);
|
assert(begin);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue