Skip to content

Commit

Permalink
Refactor: add error handling
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshiki Fujikane <[email protected]>
  • Loading branch information
ffjlabo committed Jan 6, 2025
1 parent 9f42877 commit 7b75620
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/app/pipedv1/controller/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ func (p *planner) buildPlan(ctx context.Context, runningDS, targetDS *deployment
spec := cfg.Spec

plugins, err := p.pluginRegistry.GetPluginClientsByAppConfig(spec)
if err != nil {
p.logger.Error("unable to get plugin clients by app config", zap.Error(err))
return nil, err
}

// Build deployment target versions.
for _, plg := range plugins {
Expand Down

0 comments on commit 7b75620

Please sign in to comment.