Closed nkovacs closed 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.
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 :)
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.