Skip to content

Commit

Permalink
Fix error at first rss creating
Browse files Browse the repository at this point in the history
  • Loading branch information
maruware committed Mar 22, 2019
1 parent c98e006 commit cd8a5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rss.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func GenerateRss(config *ConfigPodcast, dir string) podcast.Podcast {
}

func WriteRss(rss podcast.Podcast, dst string) error {
file, err := os.OpenFile(dst, os.O_WRONLY, os.ModePerm)
file, err := os.OpenFile(dst, os.O_WRONLY|os.O_CREATE, os.ModePerm)
defer file.Close()
if err != nil {
return err
Expand Down

0 comments on commit cd8a5be

Please sign in to comment.