WP_CLI
Process::run_check()
Run the command, but throw an Exception on error.
Method of the class: Process{}
No Hooks.
Return
ProcessRun
.
Usage
$Process = new Process(); $Process->run_check();
Process::run_check() Process::run check code WP-CLI 2.8.0-alpha
public function run_check() { $r = $this->run(); if ( $r->return_code ) { throw new RuntimeException( $r ); } return $r; }