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

Show maintenance error on 500 errors #2151

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

luistoptal
Copy link
Collaborator

Pull request for issue: #1341

Shows custom error message for 500 errors
image

How to test?

You can throw a 500 error from any controller

eg. grep $this->render('about'); then add the following before the render call

throw new CHttpException(500,'Mock Internal Server Error');

And navigate to http://gigadb.gigasciencejournal.com/site/about to confirm

How have functionalities been implemented?

Updated the protected/views/site/error.php with a custom error for 500 code

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

Successfully merging this pull request may close these issues.

1 participant