:ERRORTEXT
Syntax :ERRORTEXT
 
Explanation When you CATCH an error, the system variable ERRORTEXT contains the text of an error which Logo would otherwise have printed. This variable is only set when a procedure is running. At toplevel, the variable contains the empty list [].

See also ERROR.

 

Examples HELLO 
HELLO is neither a procedure nor a name
TO CATCH.ERROR
     CATCH "ERROR [HELLO]
     PRINT LIST "|Code: | :ERROR
     PRINT LIST "|Text: | :ERRORTEXT
END
CATCH.ERROR defined.

CATCH.ERROR
Code: ACCESS
Text: HELLO is neither a procedure nor a name

TopIndex