Commit a2858920 by Carsten Brandt

do not show debug info for UserException

parent f12316f2
......@@ -126,7 +126,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
if ($exception instanceof HttpException) {
$array['status'] = $exception->statusCode;
}
if (YII_DEBUG) {
if (YII_DEBUG && !$exception instanceof UserException) {
$array['file'] = $exception->getFile();
$array['line'] = $exception->getLine();
$array['stack-trace'] = explode("\n", $exception->getTraceAsString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment