WP_CLI

Process::run_check_stderr()publicWP-CLI 1.0

Run the command, but throw an Exception on error. Same as run_check() above, but checks the correct stderr.

Метод класса: Process{}

Хуков нет.

Возвращает

ProcessRun.

Использование

$Process = new Process();
$Process->run_check_stderr();

Код Process::run_check_stderr() WP-CLI 2.8.0-alpha

public function run_check_stderr() {
	$r = $this->run();

	if ( $r->return_code || ! empty( $r->stderr ) ) {
		throw new RuntimeException( $r );
	}

	return $r;
}