Skip to content

Commit

Permalink
Fix err() to highlight error as red similar to warn() which is yellow.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed May 12, 2016
1 parent 6189452 commit 86e64ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Shell.php
Expand Up @@ -640,11 +640,11 @@ public function out($message = null, $newlines = 1, $level = Shell::NORMAL)
*
* @param string|array|null $message A string or an array of strings to output
* @param int $newlines Number of newlines to append
* @return void
* @return int|bool Returns the number of bytes returned from writing to stderr.
*/
public function err($message = null, $newlines = 1)
{
$this->_io->err($message, $newlines);
return $this->_io->err('<error>' . $message . '</error>', $newlines);
}

/**
Expand Down

0 comments on commit 86e64ba

Please sign in to comment.