distro/fedora: print an error if PackageSets cannot initialize a manifest

Previously, this just happened silently and let to extremely odd errors. Let's
just print the error to simplify debugging the next time.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2022-11-11 14:17:44 +01:00 committed by Ondřej Budai
parent 194351e681
commit 7e97c6475e

View file

@ -561,6 +561,7 @@ func (t *imageType) PackageSets(bp blueprint.Blueprint, options distro.ImageOpti
if err != nil {
// TODO: handle manifest initialization errors more gracefully, we
// refuse to initialize manifests with invalid config.
logrus.Errorf("Initializing the manifest failed for %s (%s/%s): %v", t.Name(), t.arch.distro.Name(), t.arch.Name(), err)
return nil
}