mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 19:32:20 +08:00
Add details to temp dir removal error
This commit is contained in:
2
main.go
2
main.go
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user