From 729e2419efe235d3addf5f6f4a803c62efd55fac Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 8 Dec 2020 15:06:48 +0100 Subject: [PATCH] cleanup: return error type in detachRBDImageOrDeviceSpec() Signed-off-by: Niels de Vos --- internal/rbd/rbd_attach.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rbd/rbd_attach.go b/internal/rbd/rbd_attach.go index 7d6f7995e..ed50d878d 100644 --- a/internal/rbd/rbd_attach.go +++ b/internal/rbd/rbd_attach.go @@ -330,7 +330,7 @@ func detachRBDImageOrDeviceSpec(ctx context.Context, imageOrDeviceSpec string, i util.TraceLog(ctx, "image or device spec (%s) not mapped", imageOrDeviceSpec) return nil } - return fmt.Errorf("rbd: unmap for spec (%s) failed (%v): (%s)", imageOrDeviceSpec, err, stderr) + return fmt.Errorf("rbd: unmap for spec (%s) failed (%w): (%s)", imageOrDeviceSpec, err, stderr) } return nil