Enode — API Reference
    Preparing search index...
    • The localized, displayable message the backend sent, or null. Prefers userMessage, then reason — this backend (and iOS) puts the localized, Accept-Language'd message in reason (the EnodeAbort { reason } body), so showing it is correct even when there's no separate userMessage.

      Parameters

      • err: unknown

      Returns string | null

      Exported for call sites that render a failure inline (e.g. a wizard step's ErrorAlert) instead of through presentError: show backendMessage(err) ?? t("<generic fallback>") — never a raw err.message or status code, which are neither localized nor user-appropriate.