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 4d4912a09d
commit 490b9cf019

View file

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