소스 검색

diagnose: write warning on stderr

Markus Staab 6 년 전
부모
커밋
67e6d6d8a4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Composer/Command/DiagnoseCommand.php

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

@@ -121,8 +121,8 @@ EOT
                 $rate = $this->getGithubRateLimit('github.com');
                 $this->outputResult(true);
                 if (10 > $rate['remaining']) {
-                    $io->write('<warning>WARNING</warning>');
-                    $io->write(sprintf(
+                    $io->writeError('<warning>WARNING</warning>');
+                    $io->writeError(sprintf(
                         '<comment>Github has a rate limit on their API. '
                         . 'You currently have <options=bold>%u</options=bold> '
                         . 'out of <options=bold>%u</options=bold> requests left.' . PHP_EOL