Adding a getLastError() method as a stderr equivalent of getLastOutput() to commandexecutor.
This commit is contained in:
parent
4d4912a09d
commit
490b9cf019
|
@ -131,6 +131,14 @@ abstract class BaseCommandExecutor implements CommandExecutor
|
||||||
return implode(PHP_EOL, $this->lastOutput);
|
return implode(PHP_EOL, $this->lastOutput);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the stderr output from the last command run.
|
||||||
|
*/
|
||||||
|
public function getLastError()
|
||||||
|
{
|
||||||
|
return $this->lastError;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find a binary required by a plugin.
|
* Find a binary required by a plugin.
|
||||||
* @param string $binary
|
* @param string $binary
|
||||||
|
|
Loading…
Reference in a new issue