Skip to content

Commit

Permalink
update message on password error
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelvy committed Sep 26, 2024
1 parent 2d1756e commit 5d0d433
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/db.R
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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."))
})
Expand Down

0 comments on commit 5d0d433

Please sign in to comment.