浏览代码

Merge pull request #3940 from phansys/ticket_3859

[bugfix] Fixed undefined var in DiagnoseCommand::execute().
Jordi Boggiano 10 年之前
父节点
当前提交
99694a0381
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Command/DiagnoseCommand.php

+ 1 - 1
src/Composer/Command/DiagnoseCommand.php

@@ -118,7 +118,7 @@ EOT
                 }
             } catch (\Exception $e) {
                 if ($e instanceof TransportException && $e->getCode() === 401) {
-                    $this->outputResult('<comment>The oauth token for '.$domain.' seems invalid, run "composer config --global --unset github-oauth.'.$domain.'" to remove it</comment>');
+                    $this->outputResult('<comment>The oauth token for github.com seems invalid, run "composer config --global --unset github-oauth.github.com" to remove it</comment>');
                 } else {
                     $this->outputResult($e);
                 }