CLI macros detect various errors when a macro is executed. Some of these errors are detected without the use of an onError macro; they include the following:
The following errors are detected only when a CLI macro file contains an onError macro:
In addition to these detectable errors, you can use the following environment commands to return textual error information to the macroData log file:
![]() |
Caution: Though you can use the env.getErrorCommand and env.getErrorStatus commands in any macro, the only appropriate place from which to execute these commands is from an onError macro. |