yttopodcast: only print errors on genfeed

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2024-08-04 16:42:18 +03:00
parent 2bd7cd6063
commit b23d82376c
Signed by: Hesham
GPG Key ID: 74876157D199B09E

View File

@ -2,6 +2,7 @@ package main
import (
"context"
"errors"
"flag"
"fmt"
"io"
@ -134,10 +135,9 @@ func main() {
func genFeeds(ids []string) {
for _, id := range ids {
l.Printf("[feed] generating feed for %s\n", id)
err := genFeed(id)
if err != nil {
l.Printf(err.Error())
l.Printf(fmt.Errorf("failed to generate feed for %s %v:", id, err).Error())
continue
}
}