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 #4

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.

nkovacs commented 10 years ago

Closing this since I shouldn't have used master. Opened a new pull request: #6