Don't warn about failed ignores if folder unhealthy (fixes #2630)

This commit is contained in:
Audrius Butkevicius
2015-12-30 21:30:47 +00:00
parent 62a81cfdd1
commit 80b9a3e00b
2 changed files with 7 additions and 5 deletions

View File

@@ -893,6 +893,10 @@ func (m *Model) GetIgnores(folder string) ([]string, []string, error) {
return lines, nil, fmt.Errorf("Folder %s does not exist", folder)
}
if !cfg.HasMarker() {
return lines, nil, fmt.Errorf("Folder %s stopped", folder)
}
fd, err := os.Open(filepath.Join(cfg.Path(), ".stignore"))
if err != nil {
if os.IsNotExist(err) {