def _branch_error_analyzer(output):
    """Checks if there is an error in `output` for branch creation.
    """
    if len(output["error"]) > 0:
        l = output["error"][0]
        return "Switched to a new branch" not in l
    else:
        return False