Missing better errors
davesnx opened this issue · comments
David Sancho commented
- Acessing a key that doesn't exist
- Map over object: "Can't map function over non-array type object"
- Error: "
[]
" doesn't work in q, use. | map
- --Set any
Map()
to beMap(Identity)
-- - --any
Filter()
to beFilter(True)
-- -
esy q -- --kind="inline" '.' '{ "asdf: 123 }'
→ Yojson.Json_error("Line 1, bytes 13-14:\nUnexpected end of input") -
esy q -- --kind="inline" 'mierda' '{ "asdf: 123 }'
-> function "mierda" is not defined, if you think it's missing open an issue ++ bugUrl - ".%" Improve errors of undefined sedlexes of strings: Failure("Unexpected character """)
David Sancho commented
Fixed on v0.5.3. The biggest issues was Unexpected character, more errors will appear!