mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-21 22:54:58 +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)
|
tmpPath := path.Join(revel.AppPath, dir)
|
||||||
f, err := os.Open(tmpPath)
|
f, err := os.Open(tmpPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
revel.ERROR.Println("Failed to clean dir:", err)
|
if !os.IsNotExist(err) {
|
||||||
|
revel.ERROR.Println("Failed to clean dir:", err)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
infos, err := f.Readdir(0)
|
infos, err := f.Readdir(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user