MCPcopy Create free account
hub / github.com/prometheus/prometheus / respondPreStreamSearchError

Method respondPreStreamSearchError

web/api/v1/search.go:428–430  ·  view source on GitHub ↗
(w http.ResponseWriter, err error)

Source from the content-addressed store, hash-verified

426}
427
428func (api *API) respondPreStreamSearchError(w http.ResponseWriter, err error) {
429 api.respondError(w, searchAPIError(err), nil)
430}
431
432func writeStreamSearchError(nw *ndjsonWriter, err error) {
433 apiErr := searchAPIError(err)

Callers 2

newSearchRequestMethod · 0.95
streamSearchResultsFunction · 0.80

Calls 2

respondErrorMethod · 0.95
searchAPIErrorFunction · 0.85

Tested by

no test coverage detected