mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
Merge pull request #31 from rnubel/fix/ignore_missing_dir_on_clean
Ignore missing temporary directories in build.cleanDir
This commit is contained in:
@@ -173,7 +173,9 @@ func cleanDir(dir string) {
|
||||
tmpPath := path.Join(revel.AppPath, dir)
|
||||
f, err := os.Open(tmpPath)
|
||||
if err != nil {
|
||||
revel.ERROR.Println("Failed to clean dir:", err)
|
||||
if !os.IsNotExist(err) {
|
||||
revel.ERROR.Println("Failed to clean dir:", err)
|
||||
}
|
||||
} else {
|
||||
defer f.Close()
|
||||
infos, err := f.Readdir(0)
|
||||
|
||||
Reference in New Issue
Block a user