From a162c14562ba22bf01558d1a377cfcbad1dbaa6d Mon Sep 17 00:00:00 2001 From: Saad Assaf Date: Wed, 30 Oct 2024 14:30:12 +0100 Subject: [PATCH] fixed the if statement according to nick --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 69a57bd..44db7d4 100644 --- a/main.go +++ b/main.go @@ -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) } }