ERRM$
The ERRM$ returns information about the last error trapped by an ON ERROR
statement. It returns an error message associated with the error number,
as listed in Appendix A.
Syntax
ERRM$
Example
100 ON ERROR CALL Fixit
110 I=J/0 !The error occurred here.
120 END
200 SUB Fixit
210 PRINT ERRM$
250 SUBEND
The above program prints:
Division by zero, or modulo 0.