The "No git remote set" error message was appropriate for the previous block (where it was presumably copy-pasted from), but in this line we have failed the check that determines if we have a git branch checked out, so we should output a corresponding error.