@xo-cash/utils
    Preparing search index...

    Function buildErrorDescription

    • Formats the Zod validation failures into a single string with one line each: "- : " and top level failures with no field path show as "(root)" for better readability.

      Parameters

      • issues: $ZodIssue[]

        The Zod validation failures to format.

      Returns string

      A human readable error string for better debugging.