mochi icon indicating copy to clipboard operation
mochi copied to clipboard

Improve parsing error message

Open pya opened this issue 10 years ago • 0 comments

Currently a parsing error emits a not very user-friendly error message:

...
E   TypeError: 'NoneType' object is not iterable
------------------------------- Captured stdout --------------------------------
ParsingError: lineno=23 colno=7

The not useful part does not need to be displayed. Furthermore, some more details about the problem such as missing opening and closing parenthesis should be stated. Also, a message about a syntax error seems more sensible.

pya avatar Apr 16 '15 19:04 pya