Browse Source

Add details to temp dir removal error

pull/2553/head
Gabe Kangas 3 years ago
parent
commit
496bf3ecb3
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      main.go

2
main.go

@ -61,7 +61,7 @@ func main() { @@ -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 {

Loading…
Cancel
Save