diff --git a/cmd/mi/reddit.go b/cmd/mi/reddit.go index 7d5d73c..33648e4 100644 --- a/cmd/mi/reddit.go +++ b/cmd/mi/reddit.go @@ -71,8 +71,10 @@ func (mi *Mi) StreamReddit(ctx context.Context) { kill <- true kill <- true runtime.Goexit() - case <-errs: - ln.Error(ctx, err) + case err := <-errs: + if err != nil { + ln.Error(ctx, err) + } case p := <-posts: ln.Log(ctx, ln.Info("got reddit post"), ln.F{ "from": p.Author,