From 8d7c6dfa2c7f469b976ec94276a5576e2fd0b60c Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 1 Apr 2021 00:38:13 +0000 Subject: [PATCH] twitterchiver/relatedfetcher: fix directionality of is-not-found check --- go/twitterchiver/related_fetcher/fetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/twitterchiver/related_fetcher/fetcher.go b/go/twitterchiver/related_fetcher/fetcher.go index b05a2778c5..cae70dfc3b 100644 --- a/go/twitterchiver/related_fetcher/fetcher.go +++ b/go/twitterchiver/related_fetcher/fetcher.go @@ -224,7 +224,7 @@ func mediaFetchTick(ctx context.Context, cfg WorkerConfig) error { continue } log.Printf("[%v:%d:%v] %v already exists but has zero size; refetching", cfg.Name, t.ID, u, out) - } else if gcerrors.Code(err) == gcerrors.NotFound { + } else if gcerrors.Code(err) != gcerrors.NotFound { log.Printf("[%v:%d:%v] checking output path %v: %v", cfg.Name, t.ID, u, out, err) return }