mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +08:00
refactored exceptions.
I18N WIP.
This commit is contained in:
@ -57,7 +57,7 @@ class HelpController extends Controller
|
||||
if ($command !== null) {
|
||||
$result = Yii::$application->createController($command);
|
||||
if ($result === false) {
|
||||
throw new Exception(Yii::t('yii', 'No help for unknown command "{command}".', array(
|
||||
throw new Exception(Yii::t('yii:No help for unknown command "{command}".', array(
|
||||
'{command}' => $command,
|
||||
)));
|
||||
}
|
||||
@ -241,7 +241,7 @@ class HelpController extends Controller
|
||||
{
|
||||
$action = $controller->createAction($actionID);
|
||||
if ($action === null) {
|
||||
throw new Exception(Yii::t('yii', 'No help for unknown sub-command "{command}".', array(
|
||||
throw new Exception(Yii::t('yii:No help for unknown sub-command "{command}".', array(
|
||||
'{command}' => rtrim($controller->getUniqueId() . '/' . $actionID, '/'),
|
||||
)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user