@@ 86-91 (lines=6) @@ | ||
83 | $message .= "[{$host->getTag()}] <fg=white;bg=red> error </> <comment>in {$exception->getTaskFilename()} on line {$exception->getTaskLineNumber()}:</>\n"; |
|
84 | if ($this->output->getVerbosity() === Output::VERBOSITY_NORMAL) { |
|
85 | $message .= "[{$host->getTag()}] <fg=green;options=bold>run</> {$exception->getCommand()}\n"; |
|
86 | foreach (explode("\n", $exception->getErrorOutput()) as $line) { |
|
87 | $line = trim($line); |
|
88 | if ($line !== "") { |
|
89 | $message .= "[{$host->getTag()}] <fg=red>err</> $line\n"; |
|
90 | } |
|
91 | } |
|
92 | foreach (explode("\n", $exception->getOutput()) as $line) { |
|
93 | $line = trim($line); |
|
94 | if ($line !== "") { |
|
@@ 92-97 (lines=6) @@ | ||
89 | $message .= "[{$host->getTag()}] <fg=red>err</> $line\n"; |
|
90 | } |
|
91 | } |
|
92 | foreach (explode("\n", $exception->getOutput()) as $line) { |
|
93 | $line = trim($line); |
|
94 | if ($line !== "") { |
|
95 | $message .= "[{$host->getTag()}] $line\n"; |
|
96 | } |
|
97 | } |
|
98 | } |
|
99 | $message .= "[{$host->getTag()}] <fg=red>exit code</> {$exception->getExitCode()} ({$exception->getExitCodeText()})\n"; |
|
100 | $this->output->write($message); |
|
@@ 113-118 (lines=6) @@ | ||
110 | } |
|
111 | $message .= "[{$host->getTag()}] <fg=white;bg=red> $class </> <comment>in $file on line $line:</>\n"; |
|
112 | $message .= "[{$host->getTag()}]\n"; |
|
113 | foreach (explode("\n", $exception->getMessage()) as $line) { |
|
114 | $line = trim($line); |
|
115 | if ($line !== "") { |
|
116 | $message .= "[{$host->getTag()}] <comment>$line</comment>\n"; |
|
117 | } |
|
118 | } |
|
119 | $message .= "[{$host->getTag()}]\n"; |
|
120 | if ($this->output->isDebug()) { |
|
121 | foreach (explode("\n", $exception->getTraceAsString()) as $line) { |
|
@@ 121-126 (lines=6) @@ | ||
118 | } |
|
119 | $message .= "[{$host->getTag()}]\n"; |
|
120 | if ($this->output->isDebug()) { |
|
121 | foreach (explode("\n", $exception->getTraceAsString()) as $line) { |
|
122 | $line = trim($line); |
|
123 | if ($line !== "") { |
|
124 | $message .= "[{$host->getTag()}] $line\n"; |
|
125 | } |
|
126 | } |
|
127 | } |
|
128 | $this->output->write($message); |
|
129 | } |