From c57a2e74b877eeca2361a5e8412ae9866541634c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 23 Sep 2004 06:34:27 -0400 Subject: shored up error checking of value expressions --- walk.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'walk.cc') diff --git a/walk.cc b/walk.cc index 844099a2..154014e8 100644 --- a/walk.cc +++ b/walk.cc @@ -361,6 +361,8 @@ void walk_accounts(account_t& account, { if (! sort_string.empty()) { std::auto_ptr sort_order(parse_value_expr(sort_string)); + if (! sort_order.get()) + throw error(std::string("Sort string failed to parse: " + sort_string)); walk_accounts(account, handler, sort_order.get()); } else { walk_accounts(account, handler); -- cgit v1.2.3