diagnose: write warning on stderr
parent
abb6377caa
commit
67e6d6d8a4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue