Browse Source

use already existing error string

this one is already available and translated to some languages.
tags/2.0.8
Carsten Brandt 9 years ago
parent
commit
55b858df6d
  1. 2
      framework/web/ErrorHandler.php

2
framework/web/ErrorHandler.php

@ -134,7 +134,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
protected function convertExceptionToArray($exception)
{
if (!YII_DEBUG && !$exception instanceof UserException && !$exception instanceof HttpException) {
$exception = new HttpException(500, Yii::t('yii', 'There was an error at the server.'));
$exception = new HttpException(500, Yii::t('yii', 'An internal server error occurred.'));
}
$array = [

Loading…
Cancel
Save