diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/textual.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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<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) |