-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Generate a bare 500 response when errors:display is false. This commi… #1089
Conversation
…t does not remove the Resources folder at this time, though they could conceivably be deleted if this approach was accepted.
Another option is to leverage the Errors plugin in the |
The latest commit cleans up the
Anyway, for your consideration. Thanks for your time! |
I think this change would cause a lot of upset people. The custom error page is not just for 500 errors, it's for anything that Grav would throw an error at. I think most webserver provided 500 errors are very ugly, and don't provide any information, causing lots of extra detective work. So i'm really not interested in simply removing that. If you can find a way to add toggle an optional "let webserver handle" errors, then sure I'll consider that, but not simply removing functionality that is there already. Changes need to be upgrade-safe and not change fundamental behavior. They can add, even modify (to a degree) current behavior, but not simply remove it. |
But I think the point of setting Can you provide some more information about what sorts of errors this generic page is catching? All I've ever seen is 500s. If there are some other scenarios, it would help to understand them to create an ideal solution. If you're open a new system setting, then I can do that. Ideally I'd turn |
Agree, we cannot remove such functionality, which I consider useful. |
I tried finding a way to customize, but apparently the handler needed a standalone HTML page. When the error is called, it means you can't rely on Grav to generate anything. Something blew up. New PR on its way. |
…t does not remove the Resources folder at this time, though they could conceivably be deleted if this approach was accepted.
Related to Issue #1064