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.