Changes between Initial Version and Version 1 of Ticket #11542, comment 18


Ignore:
Timestamp:
08/26/15 08:32:18 (5 years ago)
Author:
gagern
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11542, comment 18

    initial v1  
    11Replying to [comment:17 nbruin].
    22
    3 Thanks for the feedback. The situation is the following: we see an exception for *any* kind of syntax error, and the exception itself will likely contain code snippets describing its location, but these code snippets are neither for the code the user entered, nor for the code which will eventually get executed, but instead contains some dummy values in place of literals.
     3Thanks for the feedback. The situation is the following: we see an exception for ''any'' kind of syntax error, and the exception itself will likely contain code snippets describing its location, but these code snippets are neither for the code the user entered, nor for the code which will eventually get executed, but instead contains some dummy values in place of literals.
    44
    55Perhaps I should do the following: try to parse the code with the actual values plugged back in, and if that throws, let the exception escape. If not, raise a new exception about there (probably?) being an assignment to a literal. Will write code for that soon.