@@ 83-88 (lines=6) @@ | ||
80 | $message .= "[{$host->tag()}] <fg=white;bg=red> error </> <comment>in {$exception->getTaskFilename()} on line {$exception->getTaskLineNumber()}:</>\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); |
|
@@ 110-115 (lines=6) @@ | ||
107 | } |
|
108 | $message .= "[{$host->tag()}] <fg=white;bg=red> $class </> <comment>in $file on line $line:</>\n"; |
|
109 | $message .= "[{$host->tag()}]\n"; |
|
110 | foreach (explode("\n", $exception->getMessage()) as $line) { |
|
111 | $line = trim($line); |
|
112 | if ($line !== "") { |
|
113 | $message .= "[{$host->tag()}] <comment>$line</comment>\n"; |
|
114 | } |
|
115 | } |
|
116 | $message .= "[{$host->tag()}]\n"; |
|
117 | if ($this->output->isDebug()) { |
|
118 | foreach (explode("\n", $exception->getTraceAsString()) as $line) { |
|
@@ 118-123 (lines=6) @@ | ||
115 | } |
|
116 | $message .= "[{$host->tag()}]\n"; |
|
117 | if ($this->output->isDebug()) { |
|
118 | foreach (explode("\n", $exception->getTraceAsString()) as $line) { |
|
119 | $line = trim($line); |
|
120 | if ($line !== "") { |
|
121 | $message .= "[{$host->tag()}] $line\n"; |
|
122 | } |
|
123 | } |
|
124 | } |
|
125 | $this->output->write($message); |
|
126 | } |