ERRL
The ERRL function returns information about the last error trapped by an
ON ERROR statement. It returns the line number that the error occurred
in.
Syntax
ERRL
Example
100 ON ERROR CALL Fixit
110 I=J/0 !The error occurred here.
120 END
200 SUB Fixit
210 PRINT ERRL
250 SUBEND
The above program prints:
110