Skip to content

[DEP-0] fix(login): return error if no org found for token:#448

Merged
nagypeterjob merged 1 commit intomainfrom
DEP-0-return-with-error-if-no-orgs-found
Mar 12, 2026
Merged

[DEP-0] fix(login): return error if no org found for token:#448
nagypeterjob merged 1 commit intomainfrom
DEP-0-return-with-error-if-no-orgs-found

Conversation

@nagypeterjob
Copy link
Contributor

@nagypeterjob nagypeterjob commented Mar 12, 2026

Note

Low Risk
Low risk behavioral change that affects CLI login/org switching flow only by turning an empty-org state into a hard error instead of silently returning nil.

Overview
Login/org selection now fails fast when the API token has no accessible organizations. helpers.SelectOrganization returns an explicit no organizations found error instead of nil, preventing downstream nil dereferences in commands like login and org switch.

Written by Cursor Bugbot for commit 366f7df. This will update automatically on new commits. Configure here.

@nagypeterjob nagypeterjob merged commit 4c4d50a into main Mar 12, 2026
11 checks passed
@nagypeterjob nagypeterjob deleted the DEP-0-return-with-error-if-no-orgs-found branch March 12, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants