diff --git a/main.go b/main.go index 5d39be2..ecc3af5 100644 --- a/main.go +++ b/main.go @@ -158,7 +158,10 @@ func main() { Updated: item.Date.Format(time.RFC3339), }) } - out, _ := xml.MarshalIndent(feed, "", " ") + out, err := xml.MarshalIndent(feed, "", " ") + if err != nil { + log.Fatal(err) + } fmt.Println(string(out)) }