(tag: string)
| 78 | } |
| 79 | |
| 80 | const formatReason = (tag: string) => tag.endsWith("Error") ? tag.slice(0, -5) : tag |
| 81 | |
| 82 | const formatMessage = (reason: string, description: string | undefined, info: string) => |
| 83 | description ? `${reason}: ${description} (${info})` : `${reason} error (${info})` |