如果我包含一個腳本
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: ►};