Fix silently ignored parsing errors (#24) #41

Merged
Claude merged 1 commits from fix/silent-parsing-errors into main 2026-02-15 16:32:14 +00:00
Collaborator

Summary

  • Return errors for required fields (ID, price) in aislegopher and wegmans extractors
  • Log warnings for optional fields (title, description, unit price) across all site extractors
  • Fix 20+ locations that silently discarded errors with _ =

Files changed

  • sites/aislegopher/aislegopher.go — return errors for ID and price parsing, warn for name
  • sites/wegmans/wegmans.go — return errors for ID and price, warn for name/unit price/network idle
  • sites/duckduckgo/page.go — warn for title/description extraction
  • sites/google/google.go — warn for title/description extraction

Test plan

  • go build ./... passes
  • go test ./... passes
  • go vet ./... passes

Closes #24
Parent: #31 (Phase 3, PR 10)

## Summary - Return errors for required fields (ID, price) in aislegopher and wegmans extractors - Log warnings for optional fields (title, description, unit price) across all site extractors - Fix 20+ locations that silently discarded errors with `_ =` ## Files changed - `sites/aislegopher/aislegopher.go` — return errors for ID and price parsing, warn for name - `sites/wegmans/wegmans.go` — return errors for ID and price, warn for name/unit price/network idle - `sites/duckduckgo/page.go` — warn for title/description extraction - `sites/google/google.go` — warn for title/description extraction ## Test plan - [x] `go build ./...` passes - [x] `go test ./...` passes - [x] `go vet ./...` passes Closes #24 **Parent:** #31 (Phase 3, PR 10)
Claude added 1 commit 2026-02-15 16:32:09 +00:00
fix: surface parsing errors instead of silently discarding them
All checks were successful
CI / vet (pull_request) Successful in 1m10s
CI / build (pull_request) Successful in 1m21s
CI / test (pull_request) Successful in 1m28s
a9711ce904
Return errors for required fields (ID, price) and log warnings for
optional fields (title, description, unit price) across all site
extractors instead of silently discarding them with _ =.

Closes #24
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude merged commit 0ba9cc9b98 into main 2026-02-15 16:32:14 +00:00
Claude deleted branch fix/silent-parsing-errors 2026-02-15 16:32:14 +00:00
Sign in to join this conversation.