ice / framework

Source code of Ice framework
https://www.iceframework.org
BSD 3-Clause "New" or "Revised" License
341 stars 45 forks source link

Good look exception report #234

Closed Yahasana closed 5 years ago

Yahasana commented 5 years ago

image

mruz commented 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?

Yahasana commented 5 years ago

whoops look cute but there is no arguments info and the stack frames panel distract my attention. I like the KISS rule

mruz commented 5 years ago

It will be possible to apply some hook and overwrite the response on exception, e.g. set content from custom view with assets exception

mruz commented 5 years ago

I'll add a tutorial to the documentation with some example.