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

Prettier error messages for specific, common installation problems #119

Open
seanccsmith opened this issue May 13, 2020 · 0 comments
Open
Assignees

Comments

@seanccsmith
Copy link

When the mysql user specified in the .env file does not have the correct permissions to access the _zermelo_cache table and/or _zermelo_config table, we get the following verbose stacktrace error:

Screen Shot 2020-05-11 at 3 37 24 PM

What we want is to implement a try/catch structure to see if the user can see these tables. If they cannot, the browser should display a simple page containing only the text:

"The (insert mysqlusername here) mysql user does not have permissions to the (databaes for _zermelo_cache and _zermelo_config gotten from the config file). You need to enable this access before moving forward."

When composer require zermelo_installer has been run, but php artisan zermelo:install has not been run, currently we get a similar verbose stacktrace message, and want instead an analogous simple page with just the text:

"Zermelo has not been installed. Please run ./artisan zermelo:install in your project root directory."

@ftrotter ftrotter changed the title Prettier error messages for specific, common problems Prettier error messages for specific, common installation problems Sep 9, 2020
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