Adding a getLastError() method as a stderr equivalent of getLastOutput() to commandexecutor.

This commit is contained in:
Dan Cryer 2014-07-30 14:58:07 +01:00
parent c6529b6832
commit 99dfdcdfb2

View file

@ -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