mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
pkg/spec: fix a confusing error message
When we try, but fail, to load the default seccomp profile, say that, instead of suggesting that we tried to load a profile with no name. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
@ -39,7 +39,7 @@ func getSeccompConfig(config *SecurityConfig, configSpec *spec.Spec) (*spec.Linu
|
|||||||
logrus.Debug("Loading default seccomp profile")
|
logrus.Debug("Loading default seccomp profile")
|
||||||
seccompConfig, err = goSeccomp.GetDefaultProfile(configSpec)
|
seccompConfig, err = goSeccomp.GetDefaultProfile(configSpec)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "loading seccomp profile (%s) failed", config.SeccompProfilePath)
|
return nil, errors.Wrapf(err, "loading default seccomp profile failed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user