WP_CLI\Loggers

Execution::error_multi_line()publicWP-CLI 1.0

Similar to error( $message ), but outputs $message in a red box.

Method of the class: Execution{}

No Hooks.

Return

null. Nothing.

Usage

$Execution = new Execution();
$Execution->error_multi_line( $message_lines );
$message_lines(array) (required)
Message to write.

Execution::error_multi_line() code WP-CLI 2.8.0-alpha

public function error_multi_line( $message_lines ) {
	$message = implode( "\n", $message_lines );

	$this->write( STDERR, WP_CLI::colorize( "%RError:%n\n$message\n" ) );
	$this->write( STDERR, WP_CLI::colorize( "%R---------%n\n\n" ) );
}