X Tutup
Skip to content

Commit 0e03d77

Browse files
committed
Update snapshot storage error message
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
1 parent 617c63d commit 0e03d77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snapshots/storage/bolt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,13 +371,13 @@ func CommitActive(ctx context.Context, key, name string, usage snapshots.Usage,
371371
if si.Parent != "" {
372372
spbkt := bkt.Bucket([]byte(si.Parent))
373373
if spbkt == nil {
374-
return errors.Wrapf(errdefs.ErrNotFound, "missing parent snapshot of %q", key)
374+
return errors.Wrapf(errdefs.ErrNotFound, "missing parent %q of snapshot %q", si.Parent, key)
375375
}
376376
pid := readID(spbkt)
377377

378378
// Updates parent back link to use new key
379379
if err := pbkt.Put(parentKey(pid, id), []byte(name)); err != nil {
380-
return errors.Wrapf(err, "failed to update parent link from %q to %q", key, name)
380+
return errors.Wrapf(err, "failed to update parent link %q from %q to %q", pid, key, name)
381381
}
382382
}
383383

0 commit comments

Comments
 (0)
X Tutup