-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Milestone
Description
Hi Son,
latest changes in JsonPreprocessor have a side effect.
Use case:
File 1 imports file 2; file 2 imports file 3; file 3 imports file 4.
File 4 contains a syntax error (comma at end of last line).
Previously this was the error message:
Error: 'Expecting property name enclosed in double quotes: line 4 column 1 (char 68)
Nearby: '... ... ...'
In file: '... file 4'
In file: '... file 3'
This has been changed to:
Error: 'Expecting property name enclosed in double quotes: line 4 column 1 (char 68)
Nearby: '... ... ...'
In file: '... file 4'
In file: '... file 1'
This has nothing to do with cyclic imports.
I do not understand why in first case the file 3 is mentioned additionally and in second case the file 1. In my opinion this makes no sense.
There is an error detected within a file. And the error message contains the error and the file in which the error happened. That is enough. There is no need to mention any other file because of no other file is involved in this error scenario.
Please shorten he error message to:
Error: 'Expecting property name enclosed in double quotes: line 4 column 1 (char 68)
Nearby: '... ... ...'
In file: '... file 4'
Metadata
Metadata
Assignees
Projects
Status
Done