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/ceph_user.go.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2021-11-22 12:19:34 +05:30 committed by mergify[bot]
parent 14389c7b40
commit 4ca19ad2ff

View File

@ -87,7 +87,7 @@ func createCephUser(f *framework.Framework, user string, caps []string) (string,
return "", err
}
if stdErr != "" {
return "", fmt.Errorf("failed to create user %s with error %v", cmd, stdErr)
return "", fmt.Errorf("failed to create user %s: %v", cmd, stdErr)
}
return strings.TrimSpace(stdOut), nil