summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <jwiegley@gmail.com>2017-10-26 15:20:51 -0700
committerGitHub <noreply@github.com>2017-10-26 15:20:51 -0700
commit87105d432b44b6d0f8852dd56821476e6a7a42df (patch)
treea38b8d85431c649ac5ba6f35ff32924527a5973b /src
parent5ed80cf7cc1ffea41ba22c832c629727a1dca5c4 (diff)
parent1c93a7355f3eceac62274fbf8ab2f250cb371e05 (diff)
downloadfork-ledger-87105d432b44b6d0f8852dd56821476e6a7a42df.tar.gz
fork-ledger-87105d432b44b6d0f8852dd56821476e6a7a42df.tar.bz2
fork-ledger-87105d432b44b6d0f8852dd56821476e6a7a42df.zip
Merge pull request #484 from mk12/bug-1182-ptr
Fix Bug 1182: Error message for parse failure after '='
Diffstat (limited to 'src')
-rw-r--r--src/textual.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc
index dcb69858..7ad98809 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();