Skip to content
Permalink
Browse files

Fix err() to highlight error as red similar to warn() which is yellow.

  • Loading branch information...
dereuromark committed May 12, 2016
1 parent 6189452 commit 86e64baabb6724dc01bd1098505ec518be79979c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Console/Shell.php
@@ -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);
}
/**

0 comments on commit 86e64ba

Please sign in to comment.
You can’t perform that action at this time.