Add details to temp dir removal error

This commit is contained in:
Gabe Kangas 2023-01-08 14:18:16 -08:00
parent 40c7d30c2e
commit 496bf3ecb3
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -61,7 +61,7 @@ func main() {
if utils.DoesFileExists(config.TempDir) {
err := os.RemoveAll(config.TempDir)
if err != nil {
log.Fatalln("Unable to remove temp dir!")
log.Fatalln("Unable to remove temp dir! Check permissions.", config.TempDir, err)
}
}
if err := os.Mkdir(config.TempDir, 0o700); err != nil {