mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Log loader errors during resource accumulation
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
@@ -329,9 +330,11 @@ func (kt *KustTarget) accumulateResources(
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err = kt.accumulateFile(ra, path)
|
err2 := kt.accumulateFile(ra, path)
|
||||||
if err != nil {
|
if err2 != nil {
|
||||||
return err
|
// Log ldr.New() error to highlight git failures.
|
||||||
|
log.Print(err.Error())
|
||||||
|
return err2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user