From 57ce07f54eb74abb2ce99086037e8848c48ec22b Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 8 Dec 2020 15:08:43 +0100 Subject: [PATCH] cleanup: return error type in updateVolWithImageInfo() Signed-off-by: Niels de Vos --- internal/rbd/rbd_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index 2f1e458d8..24c8017f4 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -1022,7 +1022,7 @@ func (rv *rbdVolume) updateVolWithImageInfo() error { if stdout != "" { err = json.Unmarshal([]byte(stdout), &imgInfo) if err != nil { - return fmt.Errorf("unmarshal failed: %+v. raw buffer response: %s", err, stdout) + return fmt.Errorf("unmarshal failed (%w), raw buffer response: %s", err, stdout) } rv.Primary = imgInfo.Mirroring.Primary }