Skip to content

Non-informative error messages when trying to access private datasets #4

@ChloeRN

Description

@ChloeRN

The function "list_datasets" in "download_data_from_coat_data_portal.R" is behaving rather unhelpfully when one is trying to access/download a dataset one does not have access to .
I have discovered this trying to download from the goose module with the wrong access code, and it may be that this is only an issue with this particular module because it does not contain any public datasets.

What happens is that the call to "ckanr::package_search" only returns metadata on protocol and the subsequent dplyr wrangling returns an error that the column "temporal_start" is not found. This is a very unhelpful error in this case.
For improving user-friendliness, I think it would be great to include some "catches" into the data download function suite that check access and actually return a useful error if one is trying to download a dataset that one does not have access to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions