From afb2150082f0c168a04747461c7255531caced29 Mon Sep 17 00:00:00 2001 From: Sameer Padhye Date: Tue, 1 Oct 2024 15:58:51 -0400 Subject: [PATCH] error message edit --- R/helper.get.bin.project.dataset.pids.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/helper.get.bin.project.dataset.pids.R b/R/helper.get.bin.project.dataset.pids.R index aec68ee..08d0687 100644 --- a/R/helper.get.bin.project.dataset.pids.R +++ b/R/helper.get.bin.project.dataset.pids.R @@ -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 @@ -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(