def find_line_no(content_lines, match_text, error_message):
    """Find line number where given content occurs."""
    for line_no, line in enumerate(content_lines):
        if line.startswith(match_text):
            return line_no
    else:
        raise LookupError(error_message)