From 22c9db6900fb85bb1b2f1356df72f788b2cc7d66 Mon Sep 17 00:00:00 2001 From: Alejandro Menocal Date: Tue, 17 Dec 2024 07:12:07 -0600 Subject: [PATCH] return error when fetcing no teams --- pkg/sync/sync.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/sync/sync.go b/pkg/sync/sync.go index 39b0d4f..34dc046 100644 --- a/pkg/sync/sync.go +++ b/pkg/sync/sync.go @@ -111,6 +111,7 @@ func SyncTeamsByRepo() { if len(teams) == 0 { teamsSpinnerSuccess.Fail() + log.Fatalf("No teams found fetched. Check the values of org, repos, tokens to ensure they are correct. Check logs for more details.") return }