if clone command has error, command set error code 1