Feature #3264
closedAdd position next to line on scripting error
0%
Description
Hello,
It would be a nice and useful tool especially for starters to add an position tag on the scripting error function.
Example Code:
alias test {
var %test 1
if (%test) { echo -a $gettok(%a,1,32) - $gettok(%b,2) - $gettok(%c,3,32) }
}
This code has an scripting error into the second $gettok so when the $error trigger the error message will be like this:
[17:34:26] * $gettok: insufficient parameters (line 3, test.ini)
My suggestion is to change it to display the position that the error occurred, like:
[17:34:26] * $gettok: insufficient parameters (line 5:43, test.ini)
or
[17:34:26] * $gettok: insufficient parameters (line 5, position 43, test.ini)
And after this error that will trigger with error position the scripter will more easy open the script editor and directly go into the specific line-position that the error occurred.
- Thanks!