()
| 46 | readonly cause: unknown |
| 47 | }> { |
| 48 | override get message(): string { |
| 49 | const lines: Array<string> = [ |
| 50 | `${this.step} failed for ${this.filePath}`, |
| 51 | `command: ${this.command}` |
| 52 | ] |
| 53 | if (this.exitCode !== undefined) { |
| 54 | lines.push(`exit code: ${this.exitCode}`) |
| 55 | } |
| 56 | if (this.stderr.length > 0) { |
| 57 | lines.push(`stderr:\n${this.stderr}`) |
| 58 | } |
| 59 | if (this.stdout.length > 0) { |
| 60 | lines.push(`stdout:\n${this.stdout}`) |
| 61 | } |
| 62 | return lines.join("\n") |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | /** |