From 5d0d43322172a874975b1ffaf3d881b7c1e4882a Mon Sep 17 00:00:00 2001 From: emse-p4a-gwu Date: Thu, 26 Sep 2024 07:58:46 -0400 Subject: [PATCH] update message on password error --- R/db.R | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/R/db.R b/R/db.R index 864944ee..a5019157 100644 --- a/R/db.R +++ b/R/db.R @@ -80,7 +80,7 @@ sd_database <- function( } if (!nchar(password)) { - stop("Please define your password using surveydown::sd_set_password()") + stop("Please define your password using surveydown::sd_set_password(). If you just did this, restart R to make sure the environment variable that was created is visible to the current R session.") } tryCatch({ @@ -110,8 +110,7 @@ sd_database <- function( "\n- host: ", host, "\n- dbname: ", dbname, "\n- port: ", port, - "\n- user: ", user, - "\n- password:", password, + "\n- user: ", user "\nTo update password, please use surveydown::sd_set_password().", "\nIf you have verified all connection details are correct but still cannot access the database, consider setting the 'gssencmode' parameter to 'disable' in the sd_database() function.")) })