API Core - v2.4.1
    Preparing search index...

    Function failureCauseChain

    • A failure and its causes on one line, outermost first — TypeError: fetch failed — caused by ConnectTimeoutError: Connect Timeout Error (UND_ERR_CONNECT_TIMEOUT): a host logger prints an error as its message, and fetch failed on its own names nothing. Each link is its failureReason plus its string code when it carries one; a cycle is walked once; a thrown primitive is spelled by its value; a message spanning lines is folded onto the one line.

      Parameters

      • error: unknown

        What the call or cycle threw.

      Returns string

      The chain, joined by — caused by.