Browse Source

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

mscherer 10 years ago
parent
commit
86e64baabb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Console/Shell.php

+ 2 - 2
src/Console/Shell.php

@@ -640,11 +640,11 @@ class Shell
      *
      * @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);
     }
 
     /**