In the above TryIt example, the (deliberate) error is on line 5 (
aprint instead of
print), except the line number returned by MiniScript on the resulting (and expected error) is 6. Replicated in command line MS also.
The correct line number is produced when the superfluous character (in this case
a) is placed onto earlier lines above the beginning of the else condition.