worker: remove double error
This commit is contained in:
parent
4516d6fd73
commit
98ed041956
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user