WP_CLI\Loggers

Quiet::error_multi_line()publicWP-CLI 1.0

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

Method of the class: Quiet{}

No Hooks.

Return

null. Nothing.

Usage

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

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

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

	$this->_line( $message, 'Error', '%R', STDERR );
	$this->_line( '', '---------', '%R', STDERR );
}