igorsantos07 / yii-whoops

Integrates the Whoops library into Yii 1.1.
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Do not use Whoops if YII_DEBUG is false or if errorAction is set and exception is CHttpException #6

Closed nkovacs closed 10 years ago

nkovacs commented 10 years ago

The latter allows you to work on and test your error action in development (e.g. 404 page) The former is in case you forget to set a different error handler in production, since CErrorHandler will check YII_DEBUG and won't leak sensitive data.

igorsantos07 commented 10 years ago

I'm seeing stuff in the wrong order :( First saw your commits and then the PRs you've sent.

I'll reconsider your ideas and merge stuff :)