From 0e03d778f1aee8f0e73ebe73a2eb3ca801e3e8a9 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Mon, 4 Dec 2017 17:35:27 -0500 Subject: [PATCH] Update snapshot storage error message Signed-off-by: Daniel Nephin --- snapshots/storage/bolt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snapshots/storage/bolt.go b/snapshots/storage/bolt.go index 18e219a16..d690fd098 100644 --- a/snapshots/storage/bolt.go +++ b/snapshots/storage/bolt.go @@ -371,13 +371,13 @@ func CommitActive(ctx context.Context, key, name string, usage snapshots.Usage, if si.Parent != "" { spbkt := bkt.Bucket([]byte(si.Parent)) if spbkt == nil { - return errors.Wrapf(errdefs.ErrNotFound, "missing parent snapshot of %q", key) + return errors.Wrapf(errdefs.ErrNotFound, "missing parent %q of snapshot %q", si.Parent, key) } pid := readID(spbkt) // Updates parent back link to use new key if err := pbkt.Put(parentKey(pid, id), []byte(name)); err != nil { - return errors.Wrapf(err, "failed to update parent link from %q to %q", key, name) + return errors.Wrapf(err, "failed to update parent link %q from %q to %q", pid, key, name) } }