Function: parseProviderErrorDetail()
parseProviderErrorDetail(
bodyText):string|null
Defined in: provider-sdk/src/errors.ts:62
Extract a short, client-safe detail from a provider error body. Only the
structured error.message (or top-level message) string is surfaced,
capped at 200 chars; anything else (HTML pages, stack traces, raw dumps)
is discarded so upstream text never reaches the client verbatim.
Parameters
bodyText
string
Returns
string | null