From cc3f146ad189b622b77124d2d88cb78f5953c0c9 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 8 Dec 2020 14:22:56 +0100 Subject: [PATCH] cleanup: return error type in rbdVolume.checkCloneImage() Signed-off-by: Niels de Vos --- internal/rbd/clone.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rbd/clone.go b/internal/rbd/clone.go index 008d94a40..6b436719f 100644 --- a/internal/rbd/clone.go +++ b/internal/rbd/clone.go @@ -100,7 +100,7 @@ func (rv *rbdVolume) checkCloneImage(ctx context.Context, parentVol *rbdVolume) err = rv.cloneRbdImageFromSnapshot(ctx, snap) if err != nil { util.ErrorLog(ctx, "failed to clone rbd image %s from snapshot %s: %v", rv.RbdImageName, snap.RbdSnapName, err) - err = fmt.Errorf("failed to clone rbd image %s from snapshot %s: %v", rv.RbdImageName, snap.RbdSnapName, err) + err = fmt.Errorf("failed to clone rbd image %s from snapshot %s: %w", rv.RbdImageName, snap.RbdSnapName, err) return false, err } err = tempClone.deleteSnapshot(ctx, snap)