Skip to content

Commit 4c4d50a

Browse files
authored
Merge pull request #448 from depot/DEP-0-return-with-error-if-no-orgs-found
[DEP-0] fix(login): return error if no org found for token:
2 parents ae96651 + 366f7df commit 4c4d50a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/helpers/organization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func SelectOrganization() (*Organization, error) {
4646
}
4747

4848
if len(organizations) == 0 {
49-
return nil, nil
49+
return nil, fmt.Errorf("no organizations found")
5050
}
5151

5252
if len(organizations) == 1 {

0 commit comments

Comments
 (0)