opencarl
    Preparing search index...

    Function formatError

    • Format an error for display to the user via console.error. Handles both OpencarlError instances and generic errors.

      Parameters

      • error: unknown

        The error to format (can be OpencarlError or any other error type)

      Returns string

      A formatted string suitable for console.error output