twitterchiver/relatedfetcher: fix directionality of is-not-found check

This commit is contained in:
Luke Granger-Brown 2021-04-01 00:38:13 +00:00
parent 7a48bccf36
commit 8d7c6dfa2c

View file

@ -224,7 +224,7 @@ func mediaFetchTick(ctx context.Context, cfg WorkerConfig) error {
continue continue
} }
log.Printf("[%v:%d:%v] %v already exists but has zero size; refetching", cfg.Name, t.ID, u, out) 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) log.Printf("[%v:%d:%v] checking output path %v: %v", cfg.Name, t.ID, u, out, err)
return return
} }