function failureReason
failureReason(text: string): string

Pull the reason out of a provider's error reply: the parsed message or the raw body, on one line, capped, and with every email-shaped value blanked. Empty when the reply body says nothing.

Parameters

text: string

Return Type

string

Usage

import { failureReason } from "docs/email.ts";