1
0
Fork 0

diagnose: write warning on stderr

pull/7641/head^2
Markus Staab 2018-10-27 09:58:10 +02:00 committed by Rob
parent abb6377caa
commit 67e6d6d8a4
1 changed files with 2 additions and 2 deletions

View File

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