Erract

From CYANA Wiki
Revision as of 19:18, 28 January 2009 by Admin (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

erract

"erract" is a variable for error handling in macros. If an error occurs within a macro, the value of erract is executed as a command. By default the exit command is executed, i.e. the program returns to interactive input. Errors that occur interactively are displayed and the program continues with the execution of the next statement.

Example: set erract="show; quit"

        In case of an error in a macro a listing of all global variables
        is given, and the program is stopped. Such error handling can be
        useful if the program is used non-interactively.