From ab4bfc79e9907f11eb015c55f8411dd0fc002759 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Wed, 7 Dec 2016 17:46:01 -0800 Subject: [PATCH] content: provide more context for lockfile error Signed-off-by: Stephen J Day --- content/content.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/content.go b/content/content.go index efc158197..d6298c4f4 100644 --- a/content/content.go +++ b/content/content.go @@ -256,9 +256,10 @@ func (cs *ContentStore) ingestPaths(ref string) (string, string, lockfile.Lockfi return "", "", "", errors.Errorf("ref must be a single path component") } - lock, err := lockfile.New(filepath.Join(fp, "lock")) + lockfilePath := filepath.Join(fp, "lock") + lock, err := lockfile.New(lockfilePath) if err != nil { - return "", "", "", errors.Wrap(err, "error creating lockfile") + return "", "", "", errors.Wrapf(err, "error creating lockfile %v", lockfilePath) } return fp, filepath.Join(fp, "data"), lock, nil