• Stringify an error. If it's a DescriptiveError, only the message will be returned. Otherwise, the error will be rendered with nested causes and stack traces.

    Parameters

    • error: unknown

      The error to stringify

    Returns string

    A string representation of the error