worker: remove double error

This commit is contained in:
Quentin Machu 2016-02-08 03:36:25 -05:00 committed by Jimmy Zelinskie
parent 4516d6fd73
commit 98ed041956

View File

@ -135,7 +135,6 @@ func detectContent(name, path, imageFormat string, parent *database.Layer) (name
// Detect features. // Detect features.
features, err = detectFeatures(name, data, namespace) features, err = detectFeatures(name, data, namespace)
if err != nil { if err != nil {
log.Errorf("layer %s: package list could not be determined: %s", name, err)
return return
} }
@ -182,7 +181,7 @@ func detectFeatures(name string, data map[string][]byte, namespace *database.Nam
if namespace != nil { if namespace != nil {
features[i].Feature.Namespace = *namespace features[i].Feature.Namespace = *namespace
} else { } else {
log.Errorf("layer %s: Layer's namespace is unknown but non-namespaced features have been detected", name) log.Warningf("layer %s: Layer's namespace is unknown but non-namespaced features have been detected", name)
err = ErrUnsupported err = ErrUnsupported
return return
} }