def get_input_path_contents(path):
    """Get the contents of a file."""
    if not path.is_file():
        error = "Unable to find file: '{p}'"
        error = error.format(p=path)
        raise Exception(error)
    contents = path.read_text()
    return contents