this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

search: improve failed-index-creation logging

+5 -1
+5 -1
search/server.go
··· 158 158 return err 159 159 } 160 160 defer resp.Body.Close() 161 - io.ReadAll(resp.Body) 161 + errBytes, err := io.ReadAll(resp.Body) 162 162 if resp.IsError() { 163 + s.logger.Error("failed to create index", "index", idx.Name, "response", string(errBytes)) 163 164 return fmt.Errorf("failed to create index") 165 + } 166 + if err != nil { 167 + return err 164 168 } 165 169 } 166 170 }