From b14bffd2aa182459c954cfa995cd53d36e11320f Mon Sep 17 00:00:00 2001
From: Nalin Dahyabhai <nalin@redhat.com>
Date: Fri, 9 Oct 2020 15:50:53 -0400
Subject: 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>
---
 pkg/spec/config_linux_cgo.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'pkg/spec')

diff --git a/pkg/spec/config_linux_cgo.go b/pkg/spec/config_linux_cgo.go
index bc8fc4e29..d0891b574 100644
--- a/pkg/spec/config_linux_cgo.go
+++ b/pkg/spec/config_linux_cgo.go
@@ -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")
 		}
 	}
 
-- 
cgit v1.2.3-54-g00ecf