Skip to content

Commit

Permalink
[OSD-17502] Improve error messages for better clarity and debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
reedcort committed Sep 29, 2023
1 parent f85515b commit d0e2c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cluster/transferowner.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func (o *transferOwnerOptions) run() error {
err = deleteOldRoleBinding(ocm, subscriptionID)

if err != nil {
fmt.Printf("can't delete old rolebinding %w \n", err)
fmt.Printf("can't delete old rolebinding %v \n", err)
}

// create new rolebinding
Expand Down Expand Up @@ -502,7 +502,7 @@ func getRoleBinding(ocm *sdk.Connection, subscriptionID string) (*amv1.RoleBindi
Send()

if err != nil {
return nil, fmt.Errorf("can't send request: %w", err)
return nil, fmt.Errorf("can't send request: %v", err)
}

if response.Total() == 0 {
Expand Down

0 comments on commit d0e2c18

Please sign in to comment.