Function
formatMessage
(reason: string, description: string | undefined, info: string)
Source from the content-addressed store, hash-verified
| 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})` |
| 100 | |
| 101 | interface ReasonProps { |
| 102 | readonly request: HttpClientRequest.HttpClientRequest |
Tested by
no test coverage detected