Skip to content

Commit

Permalink
fixed the if statement according to nick
Browse files Browse the repository at this point in the history
  • Loading branch information
saaadAF committed Oct 30, 2024
1 parent 4b42acd commit a162c14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ func main() {
err = kongCtx.Run(ctx, client)
if err != nil {
if k8serrors.IsForbidden(err) {
fmt.Println("nctl: Permission denied: are you part of the org? ")
kongCtx.Fatalf("Permission denied: are you part of the org?")

}else{
kongCtx.FatalIfErrorf(kongCtx.Run(ctx, client))
kongCtx.FatalIfErrorf(err)
}
}

Expand Down

0 comments on commit a162c14

Please sign in to comment.