(ctx: ToolFrame)
| 209 | } |
| 210 | |
| 211 | function toolError(ctx: ToolFrame): string { |
| 212 | if (ctx.error) { |
| 213 | return ctx.error |
| 214 | } |
| 215 | |
| 216 | const state = text(ctx.state.error).trim() |
| 217 | if (state) { |
| 218 | return state |
| 219 | } |
| 220 | |
| 221 | return ctx.raw.trim() |
| 222 | } |
| 223 | |
| 224 | function fallbackStart(ctx: ToolFrame): string { |
| 225 | const extra = info(ctx.input) |
no test coverage detected