def append_if_invalid()

in src/pathpicker/output.py [0:0]


def append_if_invalid(line_objs: List[LineMatch]) -> None:
    # lastly lets check validity and actually output an
    # error if any files are invalid
    invalid_lines = [line for line in line_objs if not line.is_resolvable()]
    if not invalid_lines:
        return
    append_error(INVALID_FILE_WARNING)
    if any(map(LineMatch.is_git_abbreviated_path, invalid_lines)):
        append_error(GIT_ABBREVIATION_WARNING)
    append_to_file(f'read -p "{CONTINUE_WARNING}" -r')