Ensure cleaning up

This commit is contained in:
breel
2020-07-25 20:55:22 -06:00
parent 09b2a94dd8
commit f90ccaae38
4 changed files with 18 additions and 13 deletions

View File

@@ -39,6 +39,7 @@ func New() Config {
as.Append(args.INT, "max-file-size", "max file size for uploads in bytes", 50*(1<<20))
if err := as.Parse(); err != nil {
os.Remove(f.Name())
panic(err)
}