Remove download file on error.

This commit is contained in:
2020-07-31 13:57:36 +02:00
parent 0902b8ba3a
commit 65d6fbe457

View File

@ -71,6 +71,9 @@ func main() {
} }
} }
if err != nil { if err != nil {
if err := os.Remove(filename); err != nil {
println(err)
}
os.Exit(1) os.Exit(1)
} }
} }