(tag: string)
| 94 | } |
| 95 | |
| 96 | const formatReason = (tag: string) => tag.endsWith("Error") ? tag.slice(0, -5) : tag |
| 97 | |
| 98 | const formatMessage = (reason: string, description: string | undefined, info: string) => |
| 99 | description ? `${reason}: ${description} (${info})` : `${reason} error (${info})` |