Skip to content

Commit

Permalink
pkg/spec: fix a confusing error message
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nalind authored and mheon committed Oct 14, 2020
1 parent 64b215e commit cbbfd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/spec/config_linux_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func getSeccompConfig(config *SecurityConfig, configSpec *spec.Spec) (*spec.Linu
logrus.Debug("Loading default seccomp profile")
seccompConfig, err = goSeccomp.GetDefaultProfile(configSpec)
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")
}
}

Expand Down

0 comments on commit cbbfd2f

Please sign in to comment.