# Changing the On Fail Behavior

TYPE | DIRECTIVE | OPTIONAL | ARGUMENTS
Operation | onfail | Yes | ask | abort | retry | ignore

The onfail directive is used to change the behavior of the batchisp program.

When an operation fails, the default behavior of batchisp is to ask the user if he wants to abort, retry or ignore the failure.

abort : batchisp stops on the first failure.

retry : batchisp replays the operation which failed.

ignore : batchisp continues, whatever the operation result is.

Example of use :

> batchisp -device at89c51rd2 -operation erase F onfail abort blankcheck 0x00 0x3FF