Function
formatMessage
(reason: string, description: string | undefined, info: string)
Source from the content-addressed store, hash-verified
| 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})` |
| 84 | |
| 85 | /** |
| 86 | * Error describing transport-level failures that occur while sending an HTTP request. |
Tested by
no test coverage detected