如果我包含一个脚本
include("child.jsl")
并且孩子有错误
x = aaa;
我得到了一个很好的错误输出
Name Unresolved: aaa in access or evaluation of 'aaa' , aaa/*###*/
at line 6 in some\path\child.jsl
但如果错误是语法错误
x = {"f", "d", }; // has an extra comma
那么我就不知道错误位于何处
Unexpected "}".
Trying to parse operand for "List" operator.
Line 5 Column 16: x = {"f", "d", ►};
我认为如果它像代码错误那样告知导致错误的文件,那就太好了。
如果包含以下内容,这显然会成为一个问题
x = {
"f",
"d",
};
因为然后我收到一个非常模糊的错误信息
Unexpected "}".
Trying to parse operand for "List" operator.
Line 8 Column 1: ►};