mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
print only valid error msg
This commit is contained in:
@@ -181,7 +181,9 @@ func cleanDir(dir string) {
|
||||
defer f.Close()
|
||||
infos, err := f.Readdir(0)
|
||||
if err != nil {
|
||||
revel.ERROR.Println("Failed to clean dir:", err)
|
||||
if !os.IsNotExist(err) {
|
||||
revel.ERROR.Println("Failed to clean dir:", err)
|
||||
}
|
||||
} else {
|
||||
for _, info := range infos {
|
||||
path := path.Join(tmpPath, info.Name())
|
||||
|
||||
Reference in New Issue
Block a user