Merge pull request #162 from tmtx/tmtx/realize_bug
Bug fix - check error right away
This commit is contained in:
commit
4c4c417d2d
@ -364,10 +364,10 @@ func (p *Project) Validate(path string, fcheck bool) bool {
|
|||||||
// file check
|
// file check
|
||||||
if fcheck {
|
if fcheck {
|
||||||
fi, err := os.Stat(path)
|
fi, err := os.Stat(path)
|
||||||
if !fi.IsDir() && ext(path) == "" {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if err != nil {
|
if !fi.IsDir() && ext(path) == "" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if fi.Size() > 0 {
|
if fi.Size() > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user