fetch_all_with_errors

Function fetch_all_with_errors 

Source
pub async fn fetch_all_with_errors(
    query: String,
) -> (Vec<PackageItem>, Vec<String>)
Expand description

What: Fetch search results from AUR and return items along with any error messages.

Input:

  • query raw query string to search

Output:

  • Tuple (items, errors) where items are PackageItems found and errors are human-readable messages for partial failures

Details:

  • Percent-encodes the query and calls the AUR RPC v5 search endpoint in a blocking task, maps up to 200 results into PackageItems, and collects any network/parse failures as error strings.