Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading error message in setup - db check #1

Open
Gutschlhofer opened this issue Mar 22, 2020 · 0 comments
Open

Misleading error message in setup - db check #1

Gutschlhofer opened this issue Mar 22, 2020 · 0 comments

Comments

@Gutschlhofer
Copy link

Hello! I was just trying to play around and set everything up, was using "Postgres" as my db type, just like the web page suggests to do, but then I got the error that my db type is invalid and that I should use amongst others Postgres. Took me a while to figure out that the code actually checks for "PostgreSQL" and not "Postgres".

auritus/R/02-setup.R

Lines 79 to 87 in b743f27

if(!db$type %in% c("MySQL", "SQLite", "PostgreSQL", "MariaDB")){
msg <- cat(
sep = "",
crayon::red(cli::symbol$cross), " Invalid database ", crayon::underline("type"), ", valid types are:\n",
crayon::yellow(cli::symbol$pointer), " MySQL\n",
crayon::yellow(cli::symbol$pointer), " SQLite\n",
crayon::yellow(cli::symbol$pointer), " Postgres\n",
crayon::yellow(cli::symbol$pointer), " MariaDB\n"
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant