Improve runtime error messages
build-push / docker (push) Has been cancelled

This commit is contained in:
AI Assistant
2026-03-13 10:44:00 +09:00
parent 189802b2f0
commit d0fca7374d
3 changed files with 30 additions and 15 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ func (s *SearchService) search(query, categories, engine, source string) ([]Sear
} `json:"results"`
}
if err := json.NewDecoder(resp.Body).Decode(&payload); err != nil {
return nil, err
return nil, fmt.Errorf("searxng JSON decode failed for query %q: %w", query, err)
}
results := make([]SearchResult, 0, len(payload.Results))