Skip to content

Commit

Permalink
routes: improve error reporting (PROJQUAY-2067)
Browse files Browse the repository at this point in the history
Adding a proper error message when unable to parse config.yaml during
Route detection.
  • Loading branch information
ricardomaraschini authored and jonathankingfc committed Jan 25, 2022
1 parent acc2122 commit 91047e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/quay/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (r *QuayRegistryReconciler) checkRoutesAvailable(ctx *quaycontext.QuayRegis
// This value is then passed to the created `Route` using a Kustomize variable.
var config map[string]interface{}
if err := yaml.Unmarshal(configBundle["config.yaml"], &config); err != nil {
return ctx, quay, err
return ctx, quay, fmt.Errorf("unable to parse config.yaml: %w", err)
}

fieldGroup, err := hostsettings.NewHostSettingsFieldGroup(config)
Expand Down

0 comments on commit 91047e4

Please sign in to comment.