mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
reverted color change of de87f43d707a53cd181f76e0b1160237056e277f
This commit is contained in:
@ -51,7 +51,7 @@ class HelpController extends Controller
|
||||
if ($command !== null) {
|
||||
$result = Yii::$app->createController($command);
|
||||
if ($result === false) {
|
||||
$name = $this->ansiFormat($command, Console::FG_RED);
|
||||
$name = $this->ansiFormat($command, Console::FG_YELLOW);
|
||||
throw new Exception("No help for unknown command \"$name\".");
|
||||
}
|
||||
|
||||
@ -250,7 +250,7 @@ class HelpController extends Controller
|
||||
{
|
||||
$action = $controller->createAction($actionID);
|
||||
if ($action === null) {
|
||||
$name = $this->ansiFormat(rtrim($controller->getUniqueId() . '/' . $actionID, '/'), Console::FG_RED);
|
||||
$name = $this->ansiFormat(rtrim($controller->getUniqueId() . '/' . $actionID, '/'), Console::FG_YELLOW);
|
||||
throw new Exception("No help for unknown sub-command \"$name\".");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user