Skip to content

Commit

Permalink
error message edit
Browse files Browse the repository at this point in the history
  • Loading branch information
sameerpadhye committed Oct 1, 2024
1 parent 0d2077c commit afb2150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/helper.get.bin.project.dataset.pids.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ bin.dataset.project.pids<-function (get.data.input,

if (httr::status_code(get.data) < 200 || httr::status_code(get.data)>=300)
{
stop(paste("Data could not be retrieved. Please check the get_by & identifiers. Please also re-confirm whether the API key has the necessary permissions to obtain the requested data."))
stop(paste("Data could not be retrieved. Please check the get_by & identifiers. Please also re-confirm whether the API key has the necessary permissions to obtain any/all data (esp. datasets and projects)"))
}

## Obtain the token as Json strings
Expand Down Expand Up @@ -64,6 +64,7 @@ bin.dataset.project.pids<-function (get.data.input,
add_headers('accept' = 'application/json',
'api-key' = apikey))


## Obtain the content as Json strings

suppressMessages(
Expand Down

0 comments on commit afb2150

Please sign in to comment.