Skip to content

Commit

Permalink
Log loader errors during resource accumulation
Browse files Browse the repository at this point in the history
  • Loading branch information
richardmarshall committed Aug 15, 2019
1 parent 54f1952 commit fe8ba8e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/target/kusttarget.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"log"
"strings"

"github.com/pkg/errors"
Expand Down Expand Up @@ -329,9 +330,11 @@ func (kt *KustTarget) accumulateResources(
return err
}
} else {
err = kt.accumulateFile(ra, path)
if err != nil {
return err
err2 := kt.accumulateFile(ra, path)
if err2 != nil {
// Log ldr.New() error to highlight git failures.
log.Print(err.Error())
return err2
}
}
}
Expand Down

0 comments on commit fe8ba8e

Please sign in to comment.