Skip to content

Commit

Permalink
Merge pull request #2194 from Mischulee/fix
Browse files Browse the repository at this point in the history
OCM-2730 | fix: Update error message for linking ocm-role/user-role with not existed entries
  • Loading branch information
openshift-merge-bot[bot] authored Jun 25, 2024
2 parents d5ca15a + 83a6031 commit 6aca08a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/link/ocmrole/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func run(cmd *cobra.Command, argv []string) {
}

if *role.Arn != roleArn {
r.Reporter.Errorf("ARN '%s' did not match the existing role ARN", *role.Arn)
r.Reporter.Errorf("The role with '%s' cannot be found", roleArn)
os.Exit(1)
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/link/userrole/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func run(cmd *cobra.Command, argv []string) {
}

if *role.Arn != roleArn {
r.Reporter.Errorf("ARN '%s' did not match the existing role ARN", *role.Arn)
r.Reporter.Errorf("The role with '%s' cannot be found", roleArn)
os.Exit(1)
}

Expand Down

0 comments on commit 6aca08a

Please sign in to comment.