| @@ 83-88 (lines=6) @@ | ||
| 80 | $message .= "[{$host->tag()}] <fg=white;bg=red> error </> <comment>in {$exception->getFilename()} on line {$exception->getLineNumber()}:</>\n"; |
|
| 81 | if ($this->output->getVerbosity() === Output::VERBOSITY_NORMAL) { |
|
| 82 | $message .= "[{$host->tag()}] <fg=green;options=bold>run</> {$exception->getCommand()}\n"; |
|
| 83 | foreach (explode("\n", $exception->getErrorOutput()) as $line) { |
|
| 84 | $line = trim($line); |
|
| 85 | if ($line !== "") { |
|
| 86 | $message .= "[{$host->tag()}] <fg=red>err</> $line\n"; |
|
| 87 | } |
|
| 88 | } |
|
| 89 | foreach (explode("\n", $exception->getOutput()) as $line) { |
|
| 90 | $line = trim($line); |
|
| 91 | if ($line !== "") { |
|
| @@ 89-94 (lines=6) @@ | ||
| 86 | $message .= "[{$host->tag()}] <fg=red>err</> $line\n"; |
|
| 87 | } |
|
| 88 | } |
|
| 89 | foreach (explode("\n", $exception->getOutput()) as $line) { |
|
| 90 | $line = trim($line); |
|
| 91 | if ($line !== "") { |
|
| 92 | $message .= "[{$host->tag()}] $line\n"; |
|
| 93 | } |
|
| 94 | } |
|
| 95 | } |
|
| 96 | $message .= "[{$host->tag()}] <fg=red>exit code</> {$exception->getExitCode()} ({$exception->getExitCodeText()})\n"; |
|
| 97 | $this->output->write($message); |
|
| @@ 111-116 (lines=6) @@ | ||
| 108 | } |
|
| 109 | $message .= "[{$host->tag()}] <fg=white;bg=red> $class </> <comment>in $file on line $line:</>\n"; |
|
| 110 | $message .= "[{$host->tag()}]\n"; |
|
| 111 | foreach (explode("\n", $exception->getMessage()) as $line) { |
|
| 112 | $line = trim($line); |
|
| 113 | if ($line !== "") { |
|
| 114 | $message .= "[{$host->tag()}] <comment>$line</comment>\n"; |
|
| 115 | } |
|
| 116 | } |
|
| 117 | $message .= "[{$host->tag()}]\n"; |
|
| 118 | $this->output->write($message); |
|
| 119 | ||