|
@@ 72-77 (lines=6) @@
|
| 69 |
|
$message .= "[{$host->tag()}] <fg=white;bg=red> error </> <comment>in {$exception->getFilename()} on line {$exception->getLineNumber()}:</comment>\n"; |
| 70 |
|
if ($this->output->getVerbosity() === Output::VERBOSITY_NORMAL) { |
| 71 |
|
$message .= "[{$host->tag()}] <fg=green;options=bold>run</> {$exception->getCommand()}\n"; |
| 72 |
|
foreach (explode("\n", $exception->getErrorOutput()) as $line) { |
| 73 |
|
$line = trim($line); |
| 74 |
|
if ($line !== "") { |
| 75 |
|
$message .= "[{$host->tag()}] <fg=red>err</> $line\n"; |
| 76 |
|
} |
| 77 |
|
} |
| 78 |
|
foreach (explode("\n", $exception->getOutput()) as $line) { |
| 79 |
|
$line = trim($line); |
| 80 |
|
if ($line !== "") { |
|
@@ 78-83 (lines=6) @@
|
| 75 |
|
$message .= "[{$host->tag()}] <fg=red>err</> $line\n"; |
| 76 |
|
} |
| 77 |
|
} |
| 78 |
|
foreach (explode("\n", $exception->getOutput()) as $line) { |
| 79 |
|
$line = trim($line); |
| 80 |
|
if ($line !== "") { |
| 81 |
|
$message .= "[{$host->tag()}] $line\n"; |
| 82 |
|
} |
| 83 |
|
} |
| 84 |
|
} |
| 85 |
|
$message .= "[{$host->tag()}] <fg=red>exit code</> {$exception->getExitCode()} ({$exception->getExitCodeText()})\n"; |
| 86 |
|
$this->output->write($message); |
|
@@ 96-101 (lines=6) @@
|
| 93 |
|
$line = $exception->getLine(); |
| 94 |
|
$message .= "[{$host->tag()}] <fg=white;bg=red> $class </> <comment>in $file on line $line:</comment>\n"; |
| 95 |
|
$message .= "[{$host->tag()}]\n"; |
| 96 |
|
foreach (explode("\n", $exception->getMessage()) as $line) { |
| 97 |
|
$line = trim($line); |
| 98 |
|
if ($line !== "") { |
| 99 |
|
$message .= "[{$host->tag()}] <comment>$line</comment>\n"; |
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
$message .= "[{$host->tag()}]\n"; |
| 103 |
|
$this->output->write($message); |
| 104 |
|
} |