lithium\console\Command::error()

public method

Writes a string to error stream.

Parameters

  • string|array $error

    The string or an array of strings to write.

  • mixed $options

    When passed an integer or boolean it is used as the number of of new lines, when passed a string it is interpreted as style to use otherwise when an array following options are available:

    • 'nl' integer|boolean: number of new lines to add at the end. false to disable adding a newline.
    • 'style' string: the style name to wrap around the output.

Returns

integer

Source

	public function error($error = null, $options = ['nl' => 1]) {
		return $this->_response('error', $error, $options);
	}