then command fails
Check that an executed command did not succeed
This is equivalent to then exit code is not 0
then exit code is not 0