Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4656d7

Browse files
authored
chore: add help to error to reset organization context (#13616)
1 parent 495eea4 commit c4656d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ func CurrentOrganization(r *RootCmd, inv *serpent.Invocation, client *codersdk.C
657657
})
658658

659659
if index < 0 {
660-
return codersdk.Organization{}, xerrors.Errorf("organization %q not found, are you sure you are a member of this organization?", selected)
660+
return codersdk.Organization{}, xerrors.Errorf("organization %q not found, are you sure you are a member of this organization? If unsure, run 'coder organizations set \"\" ' to reset your current context.", selected)
661661
}
662662
return orgs[index], nil
663663
}

0 commit comments

Comments
 (0)