From 1c93a7355f3eceac62274fbf8ab2f250cb371e05 Mon Sep 17 00:00:00 2001 From: Mitchell Kember Date: Tue, 20 Dec 2016 17:15:37 -0500 Subject: Print error message if parsing predicate after '=' --- src/textual.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/textual.cc') diff --git a/src/textual.cc b/src/textual.cc index 456ff8af..a69c635b 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -563,6 +563,9 @@ void instance_t::automated_xact_directive(char * line) expr_t::ptr_op_t expr = query.parse_args(string_value(skip_ws(line + 1)).to_sequence(), keeper, false, true); + if (!expr) { + throw parse_error(_("Expected predicate after '='")); + } unique_ptr ae(new auto_xact_t(predicate_t(expr, keeper))); ae->pos = position_t(); -- cgit v1.2.3