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

Already on GitHub? Sign in to your account

PG::Error (FATAL: role "bar" does not exist) durring on boading experience #10794

Closed
schneems opened this Issue May 30, 2013 · 1 comment

Comments

Projects
None yet
2 participants
Member

schneems commented May 30, 2013

This line: 720acee#L12R16 is causing issues in the new rails experience. If you run

$ rails new -d postgresql

And then try to run

$ rake db:create

You will get this somewhat cryptic error

PG::Error (FATAL:  role "bar" does not exist)

I couldn't find the commit where this was added, so i'm not sure its intent. Ideally we would catch this exception and give the user a better error like:

PG::Error (FATAL: could not connect to database with role "bar", it does not exist. To create this role run: `$ BLAH` on the command line) 

Even better if we could have a task that could create a role rake db:create:role or something similar.

Member

steveklabnik commented Jun 23, 2013

@schneems , while we both care a bunch about the newbie experience, this isn't actually a bug, so I'm giving it a close.

If anyone wants to figure this out and make this message better, please submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment