"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/console/ErrorHandler.php" between
yii2-2.0.36.tar.gz and yii2-2.0.37.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

ErrorHandler.php  (yii2-2.0.36):ErrorHandler.php  (yii2-2.0.37)
skipping to change at line 68 skipping to change at line 68
$message .= "\n" . $this->formatMessage("Stack trace:\n", [Console:: BOLD]) . $exception->getTraceAsString(); $message .= "\n" . $this->formatMessage("Stack trace:\n", [Console:: BOLD]) . $exception->getTraceAsString();
} else { } else {
$message = $this->formatMessage('Error: ') . $exception->getMessage( ); $message = $this->formatMessage('Error: ') . $exception->getMessage( );
} }
if (PHP_SAPI === 'cli') { if (PHP_SAPI === 'cli') {
Console::stderr($message . "\n"); Console::stderr($message . "\n");
} else { } else {
echo $message . "\n"; echo $message . "\n";
} }
if (YII_DEBUG && ($previous = $exception->getPrevious()) !== null) {
$causedBy = "\n" . $this->formatMessage('Caused by: ', [Console::BOL
D]);
if (PHP_SAPI === 'cli') {
Console::stderr($causedBy);
} else {
echo $causedBy;
}
$this->renderException($previous);
}
} }
/** /**
* Colorizes a message for console output. * Colorizes a message for console output.
* @param string $message the message to colorize. * @param string $message the message to colorize.
* @param array $format the message format. * @param array $format the message format.
* @return string the colorized message. * @return string the colorized message.
* @see Console::ansiFormat() for details on how to specify the message form at. * @see Console::ansiFormat() for details on how to specify the message form at.
*/ */
protected function formatMessage($message, $format = [Console::FG_RED, Conso le::BOLD]) protected function formatMessage($message, $format = [Console::FG_RED, Conso le::BOLD])
 End of changes. 1 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)