Skip to content

Commit

Permalink
Merge pull request #43 from qvalentin/feat-helmfile-crash
Browse files Browse the repository at this point in the history
[Fix] don't crash if values.yaml or Chart.yaml is not found
  • Loading branch information
qvalentin authored Sep 20, 2023
2 parents 61debb2 + bbd9ceb commit 81b26fd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,13 @@ func (h *langHandler) handleInitialize(ctx context.Context, reply jsonrpc2.Repli
vals, err := chartutil.ReadValuesFile(vf)
if err != nil {
logger.Println("Error loading values.yaml file", err)
return err
}
h.values = vals

chartFile := filepath.Join(workspace_uri.Path, "Chart.yaml")
chartMetadata, err := chartutil.LoadChartfile(chartFile)
if err != nil {
logger.Println("Error loading Chart.yaml file", err)
return err
}
h.chartMetadata = *chartMetadata

Expand Down

0 comments on commit 81b26fd

Please sign in to comment.