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) {
for index := range cmp.NaturalIndexes() {
pathError, _ := cmp.GetPathErrors(index)
if pathError != nil {
if len(pathError) > 0 {
for _, path := range pathError {
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
}
stackedTree, failedPaths, err := StackTreeRange(trees, 0, currentTree-1)
if failedPaths != nil {
if len(failedPaths) > 0 {
for _, path := range failedPaths {
logrus.Errorf(path.String())
}