For the three new API calls that have been added using fetch(), handle cases where the response that comes back is not OK.
In most cases this just passes along an error message. In the case of search results, because this expects a list of lists, the error message will be inside the results data structure.
The error message gets displayed to the user under the text box in most places.
For the three new API calls that have been added using
fetch()
, handle cases where the response that comes back is not OK.In most cases this just passes along an error message. In the case of search results, because this expects a list of lists, the error message will be inside the results data structure.
The error message gets displayed to the user under the text box in most places.