Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Update stdout related to cleaning up temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarbuzzi committed Jan 15, 2021
1 parent 6e5a30d commit 614b492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tvd.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,10 @@ func DownloadVOD(cfg Config) error {
return err
}
defer func() {
fmt.Println("Cleaning up temp files")
err = os.RemoveAll(tempDir)
if err != nil {
fmt.Printf("Failed to remove dir <%s>\n", tempDir)
fmt.Printf("Failed to remove tempdir <%s>\n", tempDir)
log.Fatalln(err)
}
}()
Expand Down

0 comments on commit 614b492

Please sign in to comment.