From 8999607408c87624f3247a256974e6c341dd3611 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 26 Oct 2009 17:17:12 -0400 Subject: [PATCH] If a pricing entry fails to parse, give an error --- src/textual.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/textual.cc b/src/textual.cc index 967e2f1b..f7b71429 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -461,7 +461,8 @@ void instance_t::price_xact_directive(char * line) { optional 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)