If a pricing entry fails to parse, give an error

This commit is contained in:
John Wiegley 2009-10-26 17:17:12 -04:00
parent feff681f44
commit 8999607408

View file

@ -461,7 +461,8 @@ void instance_t::price_xact_directive(char * line)
{
optional<price_point_t> point =
amount_t::current_pool->parse_price_directive(skip_ws(line + 1));
assert(point);
if (! point)
throw parse_error(_("Pricing entry failed to parse"));
}
void instance_t::nomarket_directive(char * line)