Skip to content

Commit

Permalink
Merge pull request #29 from stenlarsson/master
Browse files Browse the repository at this point in the history
Improved error handling
  • Loading branch information
trevorrowe authored Jul 7, 2016
2 parents b52cbbd + 8454eb2 commit e164f0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/jmespath/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ def nud_star(stream)
parse_wildcard_object(stream, CURRENT_NODE)
end

def nud_unknown(stream)
raise Errors::SyntaxError, "unknown token #{stream.token.value.inspect}"
end

def led_comparator(stream, left)
token = stream.token
stream.next
Expand Down

0 comments on commit e164f0b

Please sign in to comment.