mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
fix: return err in load data (#7982)
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com> Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
9e6ff00706
commit
5b79163ba5
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ func (dl *deferredLoader) HasLoaded() bool {
|
|||
func (dl *deferredLoader) LoadData() error {
|
||||
if err := dl.loader.LoadData(); err != nil {
|
||||
dl.logger.Error(err, "failed to load data", "name", dl.name)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue