diff options
author | Mitchell Kember <mk12360@gmail.com> | 2016-12-20 17:15:37 -0500 |
---|---|---|
committer | Mitchell Kember <mk12360@gmail.com> | 2016-12-20 17:30:25 -0500 |
commit | 1c93a7355f3eceac62274fbf8ab2f250cb371e05 (patch) | |
tree | 43acf848e675e1a1f9a0569c21c44bc54b9cff94 /src/textual.cc | |
parent | 0e1c6115b37cc2ddde2d981dfd0e329be626316c (diff) | |
download | fork-ledger-1c93a7355f3eceac62274fbf8ab2f250cb371e05.tar.gz fork-ledger-1c93a7355f3eceac62274fbf8ab2f250cb371e05.tar.bz2 fork-ledger-1c93a7355f3eceac62274fbf8ab2f250cb371e05.zip |
Print error message if parsing predicate after '='
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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<auto_xact_t> ae(new auto_xact_t(predicate_t(expr, keeper))); ae->pos = position_t(); |