Closed Yahasana closed 5 years ago
I like that one. I use dump to display it https://github.com/ice/base/blob/master/App/Boot/Error.php, but we could have it in the Exception. Maybe add a callback to run some code after Exception, like send email, display a view with a generic message if environment is production and pretty print if environment is development. We could use cssmin to send the styles straight from the Exception. Have you tried https://github.com/filp/whoops?
whoops look cute but there is no arguments
info and the stack frames panel distract my attention. I like the KISS rule
It will be possible to apply some hook and overwrite the response on exception, e.g. set content from custom view with assets
I'll add a tutorial to the documentation with some example.