jmespath / jmespath.py

JMESPath is a query language for JSON.
http://jmespath.org
MIT License
2.19k stars 181 forks source link

Clean up error messages #77

Closed jamesls closed 9 years ago

jamesls commented 9 years ago
  1. Fix type error messages, the actual type was always being displayed as a string
  2. Only pluralize "arguments" if the expected number of arguments is > 1.
  3. Handle a few cases where the more specific IncompleteExpressionError could be raised instead of the more generic ParseError, notably missing closing parens and lbrackets.