We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5307272 + c96d386 commit 858b04bCopy full SHA for 858b04b
pkg/plugins/optional/grafana/v1alpha/scaffolds/edit.go
@@ -69,8 +69,11 @@ func loadConfig(configPath string) ([]templates.CustomMetricItem, error) {
69
}
70
71
items, err := configReader(f)
72
+ if err != nil {
73
+ return nil, fmt.Errorf("error reading config.yaml: %w", err)
74
+ }
75
- if err := f.Close(); err != nil {
76
+ if err = f.Close(); err != nil {
77
return nil, fmt.Errorf("could not close config.yaml: %w", err)
78
79
0 commit comments