Fixed a small logic bug introduced in the last commit

This commit is contained in:
Dan Cryer 2014-07-30 13:57:29 +01:00
parent d798b5f672
commit f1115ba722

View file

@ -102,7 +102,6 @@ abstract class BaseCommandExecutor implements CommandExecutor
}
$this->lastOutput = explode(PHP_EOL, $this->lastOutput);
$this->lastError = "\033[0;31m" . $this->lastError . "\033[0m";
$shouldOutput = ($this->logExecOutput && ($this->verbose || $status != 0));
@ -111,8 +110,8 @@ abstract class BaseCommandExecutor implements CommandExecutor
}
if (!empty($this->lastError)) {
$this->logger->log('Error trying to execute: ' . $command);
$this->logger->log($this->lastError, LogLevel::ERROR);
$this->logger->log("\033[0;31m" . 'Error trying to execute: ' . $command . "\033[0m", LogLevel::ERROR);
$this->logger->log("\033[0;31m" . $this->lastError . "\033[0m", LogLevel::ERROR);
}
$rtn = false;