mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-23 15:31:26 +00:00
print only valid error msg
This commit is contained in:
@@ -181,7 +181,9 @@ func cleanDir(dir string) {
|
|||||||
defer f.Close()
|
defer f.Close()
|
||||||
infos, err := f.Readdir(0)
|
infos, err := f.Readdir(0)
|
||||||
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 {
|
||||||
for _, info := range infos {
|
for _, info := range infos {
|
||||||
path := path.Join(tmpPath, info.Name())
|
path := path.Join(tmpPath, info.Name())
|
||||||
|
|||||||
Reference in New Issue
Block a user