Fixed a small logic bug introduced in the last commit
This commit is contained in:
parent
d798b5f672
commit
f1115ba722
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue