This commit is contained in:
Alex Goodman 2019-11-20 15:02:53 -08:00
parent fcb50f0c27
commit 6b659d9ef4
No known key found for this signature in database
GPG Key ID: 150587AB82D3C4E6
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ func (cmp *Comparer) AggregatedIndexes() <-chan TreeIndexKey {
func (cmp *Comparer) BuildCache() (errors []error) { func (cmp *Comparer) BuildCache() (errors []error) {
for index := range cmp.NaturalIndexes() { for index := range cmp.NaturalIndexes() {
pathError, _ := cmp.GetPathErrors(index) pathError, _ := cmp.GetPathErrors(index)
if pathError != nil { if len(pathError) > 0 {
for _, path := range pathError { for _, path := range pathError {
errors = append(errors, fmt.Errorf("path error at layer index %s: %s", index, path)) errors = append(errors, fmt.Errorf("path error at layer index %s: %s", index, path))
} }

View File

@ -63,7 +63,7 @@ func Efficiency(trees []*FileTree) (float64, EfficiencySlice) {
return nil return nil
} }
stackedTree, failedPaths, err := StackTreeRange(trees, 0, currentTree-1) stackedTree, failedPaths, err := StackTreeRange(trees, 0, currentTree-1)
if failedPaths != nil { if len(failedPaths) > 0 {
for _, path := range failedPaths { for _, path := range failedPaths {
logrus.Errorf(path.String()) logrus.Errorf(path.String())
} }