Adding a getLastError() method as a stderr equivalent of getLastOutput() to commandexecutor.
This commit is contained in:
parent
c6529b6832
commit
99dfdcdfb2
|
@ -131,6 +131,14 @@ abstract class BaseCommandExecutor implements CommandExecutor
|
|||
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.
|
||||
* @param string $binary
|
||||
|
|
Loading…
Reference in a new issue