(ctx: ToolFrame)
| 200 | } |
| 201 | |
| 202 | function fail(ctx: ToolFrame): string { |
| 203 | const error = toolError(ctx) |
| 204 | if (error) { |
| 205 | return `✖ ${ctx.name} failed: ${error}` |
| 206 | } |
| 207 | |
| 208 | return `✖ ${ctx.name} failed` |
| 209 | } |
| 210 | |
| 211 | function toolError(ctx: ToolFrame): string { |
| 212 | if (ctx.error) { |
no test coverage detected