Error handling in custom scripts

Contributors akseldavis Download PDF of this page

SnapManager processes the custom script based on the specific return codes. For example, if your custom script returns a value of 0, 1, 2, or 3, SnapManager continues with the clone process. The return code also influences how SnapManager processes and returns the standard output of your script execution.

Return code Description Continue processing the operation

0

The script completed successfully.

Yes

1

The script completed successfully, with informational messages.

Yes

2

The script completed, but includes warnings

Yes

3

The script fails, but the operation continues.

Yes

4 or >4

The script fails and the operation stops.

No