ai cooking
0
fork

Configure Feed

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

don't blindly overwrite (#473)

* don't blindly overwrite

* return an error too

authored by

Paul Miller and committed by
GitHub
cda71a6a 1e142a0b

+2
+2
internal/recipes/server.go
··· 430 430 return 431 431 } else if !errors.Is(err, cache.ErrNotFound) { 432 432 slog.ErrorContext(ctx, "failed to load cached wine recommendation", "hash", hash, "error", err) 433 + http.Error(w, "failed to load wine pick", http.StatusInternalServerError) 434 + return // this means there is garbage in the cache dont generate juar replace 433 435 } 434 436 435 437 recipe, err := s.SingleFromCache(ctx, hash)