igorsantos07/yii-whoops — pull request #6 by nkovacs (2014-05-30 09:20:05+00:00)
Title: Do not use Whoops if YII_DEBUG is false or if errorAction is set and exception is CHttpException

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.