Sanity Library Reference Docs
    Preparing search index...

    Function formatQueryParseError

    • Formats a GROQ query parse error into a human-readable string.

      Parameters

      • error: QueryParseError

        The error object containing details about the parse error.

      • Optionaltag: null | string

        An optional tag to include in the error message.

      Returns string

      A formatted error message string.