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.