From 5275e3bf0836ae16cd9454c310a32bf06084d13e Mon Sep 17 00:00:00 2001 From: Zac Davies Date: Sat, 9 Nov 2024 22:20:34 +1000 Subject: [PATCH] add error case for auth --- R/request-helpers.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/request-helpers.R b/R/request-helpers.R index afd528e..0901883 100644 --- a/R/request-helpers.R +++ b/R/request-helpers.R @@ -54,6 +54,8 @@ db_request <- function(endpoint, method, version = NULL, body = NULL, host, toke redirect_uri = "http://localhost:8020" ) + } else { + cli::cli_abort("cannot find token or initiate OAuth U2M flow") } if (!is.null(body)) {