Only display 'Error trying to execute' message if a command's status is not successful. See #533
This commit is contained in:
parent
e967ae5bf7
commit
64fc4f0e16
1 changed files with 4 additions and 1 deletions
|
|
@ -110,7 +110,10 @@ abstract class BaseCommandExecutor implements CommandExecutor
|
|||
}
|
||||
|
||||
if (!empty($this->lastError)) {
|
||||
$this->logger->log("\033[0;31m" . 'Error trying to execute: ' . $command . "\033[0m", LogLevel::ERROR);
|
||||
if ($status != 0) {
|
||||
$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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue