From f7f5a41774b5b0a8c24b7e9a3a79439b9ed5f4f7 Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Mon, 22 Nov 2021 12:26:06 +0530 Subject: [PATCH] e2e: reformat error message with consistent formatting To make the error return consistent across e2e tests we have decided to remove with error presence from the logs and this commit does that for e2e/cephfs_helper.go. Signed-off-by: Humble Chirammal --- e2e/cephfs_helper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/cephfs_helper.go b/e2e/cephfs_helper.go index cf453b9bb..28e8d3eb9 100644 --- a/e2e/cephfs_helper.go +++ b/e2e/cephfs_helper.go @@ -27,7 +27,7 @@ func validateSubvolumegroup(f *framework.Framework, subvolgrp string) error { return fmt.Errorf("failed to exec command in toolbox: %w", err) } if stdErr != "" { - return fmt.Errorf("failed to getpath for subvolumegroup %s with error %v", subvolgrp, stdErr) + return fmt.Errorf("failed to getpath for subvolumegroup %s : %v", subvolgrp, stdErr) } expectedGrpPath := "/volumes/" + subvolgrp stdOut = strings.TrimSpace(stdOut) @@ -193,7 +193,7 @@ func getSubvolumePath(f *framework.Framework, filesystem, subvolgrp, subvolume s return "", err } if stdErr != "" { - return "", fmt.Errorf("failed to getpath for subvolume %s with error %s", subvolume, stdErr) + return "", fmt.Errorf("failed to getpath for subvolume %s : %s", subvolume, stdErr) } return strings.TrimSpace(stdOut), nil