Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
cli/cmd: annotate renderComponentManifests() errors
Browse files Browse the repository at this point in the history
So they are easier to trace and debug.

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
  • Loading branch information
invidian committed Oct 19, 2020
1 parent 230e793 commit 40a69cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cmd/component-render-manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func renderComponentManifests(lokoConfig *config.Config, componentNames []string

component, err := components.Get(componentName)
if err != nil {
return err
return fmt.Errorf("getting component %q: %w", componentName, err)
}

componentConfigBody := lokoConfig.LoadComponentConfigBody(componentName)
Expand All @@ -86,7 +86,7 @@ func renderComponentManifests(lokoConfig *config.Config, componentNames []string

manifests, err := component.RenderManifests()
if err != nil {
return err
return fmt.Errorf("rendering manifest of component %q: %w", componentName, err)
}

fmt.Printf("# manifests for component %s\n", componentName)
Expand Down

0 comments on commit 40a69cc

Please sign in to comment.