Merge pull request #200 from deployphp/elfet-get_exit_status

Update PhpSecLib::run method to check exit status.
This commit is contained in:
Anton Medvedev 2015-02-26 14:41:26 +03:00
commit bb330efba0

View File

@ -108,7 +108,7 @@ class PhpSecLib implements ServerInterface
$result = $this->sftp->exec($command);
if ($this->sftp->getStdError()) {
if ($this->sftp->getExitStatus() !== 0) {
throw new \RuntimeException($this->sftp->getStdError());
}