Skip to content

Commit

Permalink
return error when fetcing no teams
Browse files Browse the repository at this point in the history
  • Loading branch information
amenocal committed Dec 17, 2024
1 parent 1810d0f commit 22c9db6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 22c9db6

Please sign in to comment.