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

MYSQL error - improve error message #18

Closed
lightonflux opened this issue Apr 16, 2016 · 1 comment
Closed

MYSQL error - improve error message #18

lightonflux opened this issue Apr 16, 2016 · 1 comment

Comments

@lightonflux
Copy link
Contributor

When you forgot to configure your mysql password or user the webUI exposes the plain MYSQL error message:

Err: 'Access denied for user: 'mailtrain@localhost' (Using password: YES)'

People inexperienced with MySQL might not know that is a an error with the database connection. The web interface should at least mention that this is an error coming back from mysql.

Something like that:

MySQL Error: 'Access denied for user: 'mailtrain@localhost' (Using password: YES)'

A message with more information would be more user friendly, like this:

Your MySQL username or password appears to be wrong. Check config/production.toml for the right values!

Or something.

@andris9
Copy link
Contributor

andris9 commented Apr 26, 2016

The latest version tries to connect to the database even before starting listening on the www port so you do not get these errors anymore. If MySQL connection fails then server would not start.

I updated the error messages logged to console so now you should see error messages like "Could not access the database. Check MySQL config and authentication credentials" or "Could not connect to the database. Check MySQL host and port configuration".

@andris9 andris9 closed this as completed Apr 26, 2016
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

2 participants