@@ -145,12 +145,12 @@ func (v validateCommand) Run(ctx context.Context, config RootConfig) error {
145145 if promErr == nil {
146146 err := gen .GeneratePrometheus (ctx , * slos , io .Discard )
147147 if err != nil {
148- validation .Errs = []error {fmt .Errorf ("Could not generate Prometheus format rules: %w" , err )}
148+ validation .Errs = []error {fmt .Errorf ("could not generate Prometheus format rules: %w" , err )}
149149 }
150150 continue
151151 }
152152
153- validation .Errs = []error {fmt .Errorf ("Tried loading raw prometheus SLOs spec, it couldn't: %w" , promErr )}
153+ validation .Errs = []error {fmt .Errorf ("tried loading raw prometheus SLOs spec, it couldn't: %w" , promErr )}
154154
155155 case kubeYAMLLoader .IsSpecType (ctx , dataB ):
156156 sloGroup , k8sErr := kubeYAMLLoader .LoadSpec (ctx , dataB )
@@ -162,7 +162,7 @@ func (v validateCommand) Run(ctx context.Context, config RootConfig) error {
162162 continue
163163 }
164164
165- validation .Errs = []error {fmt .Errorf ("Tried loading Kubernetes prometheus SLOs spec, it couldn't: %w" , k8sErr )}
165+ validation .Errs = []error {fmt .Errorf ("tried loading Kubernetes prometheus SLOs spec, it couldn't: %w" , k8sErr )}
166166
167167 case openSLOYAMLLoader .IsSpecType (ctx , dataB ):
168168 slos , openSLOErr := openSLOYAMLLoader .LoadSpec (ctx , dataB )
@@ -174,10 +174,10 @@ func (v validateCommand) Run(ctx context.Context, config RootConfig) error {
174174 continue
175175 }
176176
177- validation .Errs = []error {fmt .Errorf ("Tried loading OpenSLO SLOs spec, it couldn't: %s" , openSLOErr )}
177+ validation .Errs = []error {fmt .Errorf ("tried loading OpenSLO SLOs spec, it couldn't: %s" , openSLOErr )}
178178
179179 default :
180- validation .Errs = []error {fmt .Errorf ("Unknown spec type" )}
180+ validation .Errs = []error {fmt .Errorf ("unknown spec type" )}
181181 }
182182 }
183183
0 commit comments