mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
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:
parent
14389c7b40
commit
4ca19ad2ff
@ -87,7 +87,7 @@ func createCephUser(f *framework.Framework, user string, caps []string) (string,
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if stdErr != "" {
|
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
|
return strings.TrimSpace(stdOut), nil
|
||||||
|
Loading…
Reference in New Issue
Block a user