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

Trying to return in response a 404 error instead of a 500, if we can … #105

Merged

Conversation

StirlingEngine
Copy link
Collaborator

Что PR делает?

Добавлена обработка исключений при выполнении главного контроллера.

Зачем PR нужен?

Основное количество непредвиденых исключений приходится на работу главного контроллера. Если мы, при таком исключении, можем выполнить ErrorController и вернуть 404 ошибку с валидной страницей, чтобы пользователь смог продолжить пользоваться сайтом, то так и делаем, ошибку пишем в лог. Если ErrorController тоже возвращает исключение, тогда уже вернём 500.

…show the ErrorController, but cannot a main controller.
@StirlingEngine StirlingEngine added the enhancement New feature or request label Nov 11, 2021
@OkayCMS OkayCMS merged commit 8501c5a into OkayCMS:develop Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants