def error_result(error: str) -> dict:
    """
    A utility function for creating a `dict` used for updating setup state related to configuring `data_path`.

    :param error: a string identifying the error
    :return: an error update for the setup state

    """
    return {
        "path": "",
        "error": error,
        "ready": False
    }