Selaa lähdekoodia

diagnose: write warning on stderr

Markus Staab 6 vuotta sitten
vanhempi
commit
67e6d6d8a4
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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