You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already mentioned this in #57 (reply in thread) and now wanted to back this up with a proper example.
So with most python exceptions occurring within jello I find it hard to pinpoint them to the part of the query source they come from. My main issue is that they don't show any line number.
For example here:
# jc -a | jello "ret=_['version']['not a dict error']; ret"
jello: Query Exception: TypeError
string indices must be integers
query: ret=_['version']['not a dict error']; ret
data: {'name': 'jc', 'version': '1.23.1', 'description': 'JSON Convert', 'author': 'Kelly Brazil', 'author_email': 'kellyjonbrazil@gmail.com', 'website':
'https://github.com/kellyjonbrazil/jc', 'copyrig ... tus` command parser', 'author': 'Kelly Brazil', 'author_email': 'kellyjonbrazil@gmail.com', 'compatible': ['linux', 'darwin',
'freebsd'], 'tags': ['command'], 'magic_commands': ['zpool status']}]}
Now this is of course a minimal example with just one line. But consider you have like 10 or 20 lines of code there. Then line numbers in the error message would really help.
The text was updated successfully, but these errors were encountered:
I already mentioned this in #57 (reply in thread) and now wanted to back this up with a proper example.
So with most python exceptions occurring within jello I find it hard to pinpoint them to the part of the query source they come from. My main issue is that they don't show any line number.
For example here:
Now this is of course a minimal example with just one line. But consider you have like 10 or 20 lines of code there. Then line numbers in the error message would really help.
The text was updated successfully, but these errors were encountered: