Skip to content

Commit

Permalink
Fix badly worded error (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
jspiro committed Jan 22, 2021
1 parent 8fafb0b commit 2f6e3bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/check/valid_owner.go
Expand Up @@ -243,7 +243,7 @@ func (v *ValidOwner) validateTeam(ctx context.Context, name string) *validateErr

if !teamHasWritePermission() {
return newValidateError(
"Team %q cannot review PRs on %q as neither it nor any parent team does not have write permissions.",
"Team %q cannot review PRs on %q as neither it nor any parent team has write permissions.",
team, v.orgRepoName)
}

Expand Down
Expand Up @@ -22,7 +22,7 @@
[err] line 15: Team "masters" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "monarchy" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "naturals" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "ninjas" cannot review PRs on "codeowners-samples" as neither it nor any parent team does not have write permissions.
[err] line 15: Team "ninjas" cannot review PRs on "codeowners-samples" as neither it nor any parent team has write permissions.
[err] line 15: Team "outliers" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "peak-performers" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "power" does not have permissions associated with the repository "codeowners-samples".
Expand All @@ -35,7 +35,7 @@
[err] line 15: Team "titans" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "tribe" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "united" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "vikings" cannot review PRs on "codeowners-samples" as neither it nor any parent team does not have write permissions.
[err] line 15: Team "vikings" cannot review PRs on "codeowners-samples" as neither it nor any parent team has write permissions.
[err] line 15: Team "warriors" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "wolf-pack" does not have permissions associated with the repository "codeowners-samples".
[err] line 17: Team "not-existing-team" does not exist in organization "gh-codeowners".
Expand Down

0 comments on commit 2f6e3bb

Please sign in to comment.