diff --git a/cmd/root.go b/cmd/root.go index 3677be8d8..dc80eb548 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -56,11 +56,11 @@ func doRunCmd(_ *cobra.Command, args []string) int { defer stereoscope.Cleanup() log.Info("Identifying Distro") - distro, err := imgbom.IdentifyDistro(img) - if err != nil { - log.Errorf("error identifying Distro: %w", err) + distro := imgbom.IdentifyDistro(img) + if distro == nil { + log.Errorf("error identifying distro") } else { - log.Info(" Distro: %s", distro) + log.Infof(" Distro: %s", distro) } log.Info("Cataloging image")